import type { UiHandlerDeps } from "../deps.js";
/** One indexed document's id + full normalized text, read through the LK QI handoff seam. */
export interface CapsuleDocumentText {
    readonly documentId: string;
    readonly text: string;
}
/**
 * Resolves the full corpus text for a connected Local Knowledge connector. `capsule` reads a single
 * capsule; `capsuleSet` fans out over a capsule-set's members. Both share one lazily-opened store
 * handle and return `[]` on any failure (unknown id, store-open error) so the ingestion layer maps
 * the empty result to a coded, user-actionable QI_CAPSULE_UNAVAILABLE error.
 */
export interface CapsuleResolver {
    readonly capsule: (capsuleId: string) => readonly CapsuleDocumentText[];
    readonly capsuleSet: (capsuleSetId: string) => readonly CapsuleDocumentText[];
}
/**
 * Builds a CapsuleResolver that opens the LK store ONCE (per resolver) and returns the full corpus
 * text for any capsule or capsule-set. Returns `undefined` when `deps.uiDbPath` is not set.
 * Store-open errors produce a resolver whose methods always return `[]`.
 */
export declare function makeCapsuleResolver(deps: UiHandlerDeps): CapsuleResolver | undefined;
//# sourceMappingURL=capsuleAdapter.d.ts.map