//
//  CLManifestParser.h
//  CastlabsDownloader
//
//  Created by Asti Manuka on 13/08/25.
//

#import <Foundation/Foundation.h>

@interface CLManifestParser : NSObject <NSXMLParserDelegate>

@property (nonatomic, strong) NSString *originalXML;
@property (nonatomic, strong) NSSet<NSString *> *allowedIDs;
@property (nonatomic, strong) NSMutableArray<NSValue *> *rangesToRemove;
@property (nonatomic, strong) NSMutableArray<NSDictionary *> *adaptationStack;
@property (nonatomic, assign) NSUInteger searchIndex;

- (NSString *)filterManifestAtPath:(NSString *)path keepingIDs:(NSArray<NSString *> *)idsToKeep;

@end
