import type { EmbeddingProvider } from "./embedding-provider";
/** Whether local embeddings have been disabled this process due to a missing
 * native runtime (issue #128). Used by callers/tests to detect the degraded state. */
export declare function isLocalEmbeddingRuntimeMissing(): boolean;
export declare function isNativeRuntimeMissingError(error: unknown): boolean;
export declare class LocalEmbeddingProvider implements EmbeddingProvider {
    readonly modelId: string;
    readonly maxInputTokens: number;
    private readonly model;
    private pipeline;
    private initPromise;
    private inFlight;
    private disposing;
    private disposePromise;
    private readonly inFlightWaiters;
    constructor(model?: string, maxInputTokens?: number);
    initialize(): Promise<boolean>;
    private waitForInFlightToDrain;
    private finishInFlight;
    embed(text: string, signal?: AbortSignal): Promise<Float32Array | null>;
    embedBatch(texts: string[], signal?: AbortSignal): Promise<(Float32Array | null)[]>;
    dispose(): Promise<void>;
    isLoaded(): boolean;
}
//# sourceMappingURL=embedding-local.d.ts.map