import { Pathy } from '@bscotch/pathy'; import { type AudioSourceConfig, type SourceConfig, type ConfigFile, GroupedSourceConfig } from './assetSource.types.js'; export declare class AssetSourceConfig { readonly dir: Pathy; protected config: T; constructor(dir: Pathy, config: T); get id(): string; get type(): T['type']; get files(): T['files']; set files(files: T['files']); absoluteFilePath(file: T['files'][number]): Pathy; grouped(): GroupedSourceConfig; toJSON(): T; compareFiles(a: T['files'][number], b: T['files'][number]): number; } export declare class AssetSourcesConfig { readonly path: Pathy; constructor(path: string | Pathy); get dir(): Pathy; listAudioSources(): Promise[]>; listSources(options?: { filter: (sources: AssetSourceConfig) => any; }): Promise; findAudioSource(id: string, config?: ConfigFile): Promise<[AssetSourceConfig, number]>; findSource(id: string, config?: ConfigFile): Promise<[source: AssetSourceConfig, idx: number]>; addAudioSource(info?: Partial): Promise>; removeSource(id: string): Promise; updateAudioSource(id: string, info: Partial>): Promise; /** * Update the config file to reflect the current state * of all described files. */ refreshAudioSource(id: string): Promise>; toggleImportables(sourceId: string, fileIds: string[], importable: boolean): Promise; toggleImportable(sourceId: string, fileId: string, importable: boolean): Promise; load(): Promise; protected write(config: ConfigFile): Promise; static readonly basename = "stitch.src.json"; static from(path: string | Pathy): AssetSourcesConfig; } //# sourceMappingURL=AssetSourcesConfig.d.ts.map