import type { SolidAuthContext } from '../auth/AuthContext'; import type { InternalPodAccessTokenProvider } from '../ai-gateway/pod/HostedPodDataAccess'; import type { AiConfigPolicy, AiConfigPolicyPatch, AiConfigPolicyStore } from '../handlers/AiConfigHandler'; interface AiConfigDb { init?: (...resources: unknown[]) => Promise; findById(resource: unknown, id: string): Promise; updateById(resource: unknown, id: string, patch: unknown): Promise; insert(resource: unknown): { values(row: unknown): { execute(): Promise; }; }; } export interface DrizzlePodAiConfigStoreOptions { internalPodAccess?: InternalPodAccessTokenProvider; dbFactory?: (input: { webId: string; podUrl: string; fetch: typeof fetch; }) => Promise; now?: () => Date; } export declare class DrizzlePodAiConfigStore implements AiConfigPolicyStore { private readonly options; private readonly dbFactory; private readonly now; constructor(options: DrizzlePodAiConfigStoreOptions); read(input: { webId: string; podUrl: string; auth?: SolidAuthContext; }): Promise; update(input: { webId: string; podUrl: string; patch: AiConfigPolicyPatch; auth?: SolidAuthContext; }): Promise; private open; } export {};