import type { Usage } from "@earendil-works/pi-ai"; import type { ExtensionContext } from "@earendil-works/pi-coding-agent"; import type { FabricActionDescriptor, FabricInvocationContext, FabricProvider } from "./protocol.js"; export declare const CODEMODE_STORE_ENTRY = "fabric-codemode-store"; export declare const STORE_VALUE_LIMIT = 262144; export declare const STORE_TOTAL_LIMIT = 1048576; export declare function validateScriptStore(values: Record): Record; interface Transaction { context: ExtensionContext; session: string; leaf: string | null; values: Record; staged?: Record; active: number; waiters: Array<() => void>; usage: Usage[]; } export declare class NativeCodemodeProvider implements FabricProvider { #private; readonly name = "native"; readonly description = "Pi native model registry and branch-local codemode state"; readonly transactions: Map; get persistenceAvailable(): boolean; setPersistence(append: ((type: string, data: unknown) => void) | undefined): void; invalidate(): void; begin(id: string, context: ExtensionContext, nativeStore?: boolean): { finish: (success: boolean) => Usage[]; }; list(_request: unknown, context: FabricInvocationContext): Promise; describe(name: string, context: FabricInvocationContext): Promise; invoke(name: string, args: Record, context: FabricInvocationContext): Promise; } export {}; //# sourceMappingURL=native-codemode.d.ts.map