import type { Client } from "@libsql/client"; import { type DestinationPresentation } from "./destination-presentation.js"; export declare class MeshInfoNotFoundError extends Error { readonly errorCode = "mesh-info-not-found"; readonly meshName: string; constructor(meshName: string); } export declare class MeshInfoRemoteGhUnavailableError extends Error { readonly errorCode = "remote-gh-unavailable"; readonly meshName: string; constructor(meshName: string, cause: string); } export declare class MeshInfoRemoteMeshYonMissingError extends Error { readonly errorCode = "remote-mesh-yon-missing"; readonly meshName: string; constructor(meshName: string); } export interface MeshInfoGhClient { getRemoteFileContent(handle: string, repo: string, path: string): Promise; } export declare const realMeshInfoGhClient: MeshInfoGhClient; export interface MeshInfoArgs { meshName: string; registryDb?: Client | undefined; ghClient?: MeshInfoGhClient | undefined; remote?: boolean | undefined; } export interface MeshInfoHomeVault { vaultRid: string; vaultRidHex: string; vaultName: string; acquisitionSource: "own" | "shared" | "subscribed" | null; destination: DestinationPresentation | null; } export interface MeshInfoResult { source: "local" | "remote"; mesh: { rid: string; ridHex: string; name: string; pushTarget: string | null; pushKind: string | null; ownCreated: boolean; destination: DestinationPresentation; mainVaultRid: string; createdAt: string; }; homeVaults: MeshInfoHomeVault[]; } export declare function meshInfoFlow(args: MeshInfoArgs): Promise; //# sourceMappingURL=mesh-info.d.ts.map