import { type VaultPaths } from "../vault.js"; import { type ChildResult } from "./process.js"; export interface QmdCollection { readonly name: string; readonly root: string; readonly include: "**/*.md"; } export interface QmdSearchResult { readonly path: string; readonly score: number; readonly snippet: string; } export type QmdSyncRunner = (paths: VaultPaths, args: readonly string[], timeoutMs?: number) => ChildResult; export interface QmdIndexOptions { readonly ignoredPaths?: readonly string[]; } export type QmdAsyncRunner = (paths: VaultPaths, args: readonly string[], timeoutMs?: number) => Promise; export declare function qmdCollectionName(vaultId: string): string; export declare function qmdCollection(paths: VaultPaths): QmdCollection; export declare function qmdEnvironment(paths: VaultPaths): Readonly>; export declare function qmdArgs(paths: VaultPaths, args: readonly string[]): string[]; export declare function runQmd(paths: VaultPaths, args: readonly string[], timeoutMs?: number): Promise; export declare function qmdRefresh(paths: VaultPaths, options?: QmdIndexOptions): Promise; export declare function runQmdSync(paths: VaultPaths, args: readonly string[], timeoutMs?: number): ChildResult; export declare function ensureQmdCollection(paths: VaultPaths): ChildResult; export declare function qmdSearch(paths: VaultPaths, query: string, limit?: number, runner?: QmdAsyncRunner): Promise; export declare function qmdDependencyIdentity(paths: VaultPaths, runner?: QmdSyncRunner): { readonly executable: string; readonly version: string; }; export declare function qmdScopeCheck(paths: VaultPaths, runner?: QmdSyncRunner, expectedIgnoredPaths?: readonly string[]): { readonly ok: boolean; readonly collection: QmdCollection; readonly message: string; }; //# sourceMappingURL=qmd.d.ts.map