import type { Settings } from "@opengeni/config"; import { type Database } from "../database.js"; import { type SubscriptionCoreAdministeredProbeDeps } from "./administered-connections.js"; import { type SubscriptionCoreTurnIdentity } from "./turns.js"; export type SubscriptionCorePersonalConnection = { connectionId: string; label: string | null; providerAccountId: string | null; status: string; }; export declare const subscriptionCorePersonalConnections: (provider: import("./provider.js").SubscriptionCoreProvider) => { readSubscriptionCorePersonalConnections: (db: Database, input: { accountId: string; workspaceId: string; subjectId: string; }) => Promise<{ connections: SubscriptionCorePersonalConnection[]; ownPersonalWorkspace: boolean; }>; refreshExhaustedSubscriptionCoreTurnPersonalQuota: (db: Database, settings: Settings, identity: SubscriptionCoreTurnIdentity, deps?: SubscriptionCoreAdministeredProbeDeps & { minIntervalMs?: number; now?: number; }) => Promise; }; /** One of the viewing person's own subscription accounts, of any provider. */ export type OwnSubscriptionCoreConnection = { connectionId: string; /** The registered provider id. */ provider: string; label: string | null; accountEmail: string | null; planType: string | null; }; /** * The viewing person's own subscription accounts of every registered * provider, through the owner-only reader in the workspace they view (no * credential material). Empty for anyone else and for a workspace the person * may not use. */ export declare function listOwnSubscriptionCoreConnections(db: Database, input: { accountId: string; workspaceId: string; subjectId: string; }): Promise;