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; write?: (url: string, content: string) => void | Promise; resolve?: (url: string) => string | undefined | Promise; } export interface InternalResourceContext { internalRouter?: InternalResourceRouter; internalResourceRouter?: InternalResourceRouter; resolveInternalUrl?: (url: string) => string | undefined | Promise; } type SqliteValue = string | number | boolean | null; /** Callers may pass booleans; `node:sqlite` refuses to bind them, so store integer 1/0. */ export declare function toSqliteBindValues(params: readonly SqliteValue[]): unknown[]; 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; export declare function readZipEntries(path: string): Map; 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; export declare function writeInternalSelector(value: string, cwd: string, content: string, context?: InternalResourceContext): Promise; export declare function searchInternalSelector(value: string, cwd: string, pattern: string, ignoreCase?: boolean, literal?: boolean, context?: InternalResourceContext, contextBefore?: number, contextAfter?: number): Promise; export declare function expandShellInternalUrls(text: string, cwd: string, context?: InternalResourceContext, quote?: boolean, dialect?: "posix" | "powershell"): Promise; 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; export {}; //# sourceMappingURL=resource-selectors.d.ts.map