import type { Permission, WorkspaceMember } from "@opengeni/contracts"; import { type Database } from "./database.js"; export declare function grantWorkspaceAccess(db: Database, input: { accountId: string; workspaceId: string; subjectId: string; subjectLabel?: string; role?: string; permissions: Permission[]; }): Promise; /** Insert-only membership grant: never overwrites an existing row. True when inserted. */ export declare function insertWorkspaceMembershipIfAbsent(db: Database, input: { accountId: string; workspaceId: string; subjectId: string; role?: string; permissions: Permission[]; }): Promise; export declare function listWorkspaceMembers(db: Database, workspaceId: string): Promise;