/** * Funding and readiness of a connected subscription on the shared core * (design 5.3, EP-N19 and EP-T18/EP-S25/EP-N26) for the registered binding. * An accepted turn is funded exactly as placement would serve it (its frozen * authority, session owner and model); new work in a workspace is funded or * ready when a connection that may serve the acting subject here admits the * model (shared pools; the subject's own personal connection only in their * own Personal workspace). */ import type { Database } from "../database.js"; type Scope = { provider: string; accountId: string; workspaceId: string; /** The acting person (or a scheduled task's owner); null sees shared capacity only. */ subjectId: string | null; }; /** Whether the provider's subscription funds this work. */ export declare function readSubscriptionCoreFunding(db: Database, input: Scope & { productModelId: string; /** The exact accepted work, when the caller has it. */ acceptedTurn?: { sessionId: string; turnId: string; }; }): Promise; /** * The provider's catalog readiness here and the union of its serving * connections' model allowlists (null: every model). */ export declare function readSubscriptionCoreReadiness(db: Database, input: Scope): Promise<{ ready: boolean; allowedModelIds: string[] | null; }>; export {};