import { RouteKitFailure } from "@velum-labs/routekit-runtime/effect"; import type { SecretStoreService } from "@velum-labs/routekit-runtime/secret-store"; import { Effect } from "effect"; import { type LegacySecretImportPlatform, LegacySecretImportRequiresLoginError } from "../adapters/darwin-legacy-secret-importer.js"; export type RemoteCredentialOptions = { home?: string; secretStore?: SecretStoreService; legacyImportPlatform?: LegacySecretImportPlatform; }; export declare class RemoteCredentialRepository { private readonly options; constructor(options?: RemoteCredentialOptions); path(name: string): string; private store; private key; private keyEffect; private static storageError; writeEffect(name: string, token: string): Effect.Effect; readEffect(name: string): Effect.Effect; deleteEffect(name: string): Effect.Effect; write(name: string, token: string): Promise; read(name: string): Promise; delete(name: string): Promise; /** * Copy one already-enrolled remote token into an environment entry owned by * a newly spawned local daemon. Callers must not print the returned value. */ exportToEnvironment(name: string): Promise; }