export interface ArchiveSelector {
    archivePath: string;
    memberPath: string;
}
export interface SqliteSelector {
    databasePath: string;
    table?: string;
    rowId?: string;
    query?: string;
    limit?: number;
    offset?: number;
    where?: string;
    order?: string;
    schema?: boolean;
    sampleRows?: number;
}
export interface InternalResourceRouter {
    read?: (url: string) => string | Buffer | undefined | Promise<string | Buffer | undefined>;
    write?: (url: string, content: string) => void | Promise<void>;
    resolve?: (url: string) => string | undefined | Promise<string | undefined>;
}
export interface InternalResourceContext {
    internalRouter?: InternalResourceRouter;
    internalResourceRouter?: InternalResourceRouter;
    resolveInternalUrl?: (url: string) => string | undefined | Promise<string | undefined>;
}
export declare function sqliteSelectorForPath(value: string, cwd: string): SqliteSelector | undefined;
export declare function parseArchiveSelector(value: string): ArchiveSelector | undefined;
export declare function resolveArchiveSelector(selector: ArchiveSelector, cwd: string): ArchiveSelector;
export declare function parseSqliteSelector(value: string): SqliteSelector | undefined;
export declare function readZipEntriesFromBuffer(buf: Buffer, label: string): Map<string, Buffer>;
export declare function readZipEntries(path: string): Map<string, Buffer>;
export declare function readArchiveSelector(selector: ArchiveSelector): string;
export declare function writeArchiveSelector(selector: ArchiveSelector, content: string): void;
export declare function searchArchiveSelector(selector: ArchiveSelector, pattern: string, ignoreCase?: boolean, literal?: boolean, contextBefore?: number, contextAfter?: number): string;
export declare function resolveInternalSelector(value: string, cwd: string): string | undefined;
export declare function readInternalSelector(value: string, cwd: string, context?: InternalResourceContext): Promise<string>;
export declare function writeInternalSelector(value: string, cwd: string, content: string, context?: InternalResourceContext): Promise<void>;
export declare function searchInternalSelector(value: string, cwd: string, pattern: string, ignoreCase?: boolean, literal?: boolean, context?: InternalResourceContext, contextBefore?: number, contextAfter?: number): Promise<string>;
export declare function expandShellInternalUrls(text: string, cwd: string, context?: InternalResourceContext, quote?: boolean): Promise<string>;
export declare function readSqliteSelector(selector: SqliteSelector): string;
export declare function writeSqliteSelector(selector: SqliteSelector, content: string): string;
export declare function searchSqliteSelector(selector: SqliteSelector, pattern: string, ignoreCase?: boolean, contextBefore?: number, contextAfter?: number): string;
//# sourceMappingURL=resource-selectors.d.ts.map