import type { Client } from "@libsql/client"; import type { AccessProvider, Caller } from "../access/access-provider.js"; import type { GhExecutor } from "../util/gh-discover.js"; export type ShareLevel = "read" | "write"; export interface ShareVaultArgs { vaultName: string; withHandle: string; level: ShareLevel; confirmed: boolean; } export interface UnshareVaultArgs { vaultName: string; withHandle: string; confirmed: boolean; } export interface ShareVaultFlowOpts { db?: Client; accessProvider?: AccessProvider; gh?: GhExecutor; } export interface ShareVaultResult { vault: string; grantee: Caller; level: ShareLevel; status: "shared"; } export interface UnshareVaultResult { vault: string; grantee: Caller; status: "unshared"; revoked: "direct-collaborator-grant"; effectiveAccess: "not-checked"; } export declare function shareVaultFlow(args: ShareVaultArgs, opts?: ShareVaultFlowOpts): Promise; export declare function unshareVaultFlow(args: UnshareVaultArgs, opts?: ShareVaultFlowOpts): Promise; //# sourceMappingURL=share.d.ts.map