import { SupabaseMcpAuthentication, SupabaseMcpDurableStateOptions, SupabaseMcpState } from "./types.js"; import { SupabaseClient } from "@supabase/supabase-js"; //#region src/state.d.ts declare const durableStateLimits: Readonly<{ hmacKeyBytes: { min: number; max: number; }; namespaces: 32; namespaceBytes: 64; keyBytes: 512; valueBytes: number; ttlSeconds: { min: number; max: number; }; }>; declare class SupabaseMcpStateConflictError extends Error { readonly code = "state_conflict"; readonly actualRevision?: number; constructor(actualRevision?: number); } declare class SupabaseMcpStateMissingError extends Error { readonly code = "state_missing"; constructor(); } declare class SupabaseMcpStateUnavailableError extends Error { readonly code = "state_unavailable"; constructor(); } interface StateFactoryIdentity { readonly credential: string; readonly authentication: SupabaseMcpAuthentication; /** * Optional validated `Mcp-Session-Id` header value. When supplied, derives a * domain-separated `(credential, sessionId)` partition (`supa-mcp-session-state-v1`) * isolated from both other credentials and other sessions of the same credential. */ readonly sessionId?: string; } interface SupabaseMcpStateFactory { create(identity: StateFactoryIdentity, admin: SupabaseClient): Promise; } declare function validateDurableStateNamespace(namespace: string): void; declare function createSupabaseMcpStateFactory(options: SupabaseMcpDurableStateOptions): SupabaseMcpStateFactory; //#endregion export { StateFactoryIdentity, SupabaseMcpStateConflictError, SupabaseMcpStateFactory, SupabaseMcpStateMissingError, SupabaseMcpStateUnavailableError, createSupabaseMcpStateFactory, durableStateLimits, validateDurableStateNamespace }; //# sourceMappingURL=state.d.ts.map