import type { Client } from "@libsql/client"; import { type WriteGate } from "../flows/writability.js"; import { type GhExecutor } from "../util/gh-discover.js"; import type { VaultRow } from "../registry/repo.js"; import type { AccessEntry, AccessProvider, Caller, Invitation } from "./access-provider.js"; export declare class GhAccessProvider implements AccessProvider { private readonly db; private readonly gh?; constructor(db: Client, opts?: { gh?: GhExecutor; }); caller(): Caller; canWrite(vault: VaultRow, _caller?: Caller): Promise; resolveScoped(handle: string, _caller?: Caller): Promise; listAccess(vault: VaultRow, _caller?: Caller): Promise; canShare(vault: VaultRow, _caller?: Caller): Promise; listInvitations(_caller?: Caller): Promise; acceptInvitation(id: number, _caller?: Caller): Promise; grant(vault: VaultRow, grantee: Caller, level: "read" | "write"): Promise; revoke(vault: VaultRow, grantee: Caller): Promise; private resolveGh; private requireOwnerRepo; } export declare function parseCollaborators(raw: string, context: string): Array<{ login: string; push: boolean; }>; export declare function parseInvitations(raw: string): Invitation[]; //# sourceMappingURL=gh-access-provider.d.ts.map