import * as Context from "effect/Context"; import * as Effect from "effect/Effect"; import * as FileSystem from "effect/FileSystem"; import * as Layer from "effect/Layer"; import type { PlatformError } from "effect/PlatformError"; import * as Redacted from "effect/Redacted"; export declare const profileCredentialsDirPath: (profile: string) => string; export declare const credentialsFilePath: (profile: string, provider: string) => string; /** * Service exposing per-profile credential file helpers. All methods have * `R = never` — the {@link FileSystem.FileSystem} requirement is captured * by {@link CredentialsStoreLive} when the layer is built. */ export interface CredentialsStoreService { readonly read: (profile: string, provider: string) => Effect.Effect; readonly write: (profile: string, provider: string, credentials: T) => Effect.Effect; readonly delete: (profile: string, provider: string) => Effect.Effect; /** * Recursively remove the `~/.alchemy/credentials/{profile}` directory * containing all per-provider secrets for `profile`. No-op if it doesn't exist. */ readonly deleteProfile: (profile: string) => Effect.Effect; } declare const CredentialsStore_base: Context.ServiceClass; export declare class CredentialsStore extends CredentialsStore_base { } export declare const CredentialsStoreLive: Layer.Layer; export declare function displayRedacted(r: Redacted.Redacted, visibleChars?: number): string; export {}; //# sourceMappingURL=Credentials.d.ts.map