/** SDK-owned platform module. This implementation is maintained in goodvibes-sdk. */
export type SecretProviderSource = 'env' | 'goodvibes' | 'file' | 'exec' | '1password' | 'onepassword' | 'bitwarden' | 'vaultwarden' | 'bitwarden-secrets-manager' | 'bws';
export type BitwardenSecretField = 'password' | 'username' | 'notes' | 'totp' | 'item' | `login.${string}` | string;
export interface EnvSecretRef {
    readonly source: 'env';
    readonly id: string;
}
export interface GoodVibesSecretRef {
    readonly source: 'goodvibes';
    readonly id: string;
}
export interface FileSecretRef {
    readonly source: 'file';
    readonly path: string;
    readonly selector?: string;
}
export interface ExecSecretRef {
    readonly source: 'exec';
    readonly command: string;
    readonly args?: readonly string[];
    readonly env?: Record<string, string>;
    readonly stdin?: string;
    readonly timeoutMs?: number;
}
export interface OnePasswordSecretRef {
    readonly source: '1password' | 'onepassword';
    readonly ref?: string;
    readonly vault?: string;
    readonly item?: string;
    readonly field?: string;
    readonly account?: string;
    readonly cli?: string;
    readonly timeoutMs?: number;
}
export interface BitwardenSecretRef {
    readonly source: 'bitwarden' | 'vaultwarden';
    readonly item: string;
    readonly field?: BitwardenSecretField;
    readonly customField?: string;
    readonly cli?: string;
    readonly appDataDir?: string;
    readonly sessionEnv?: string;
    readonly server?: string;
    readonly serverEnv?: string;
    readonly validateServer?: boolean;
    readonly syncBeforeRead?: boolean;
    readonly timeoutMs?: number;
}
export interface BitwardenSecretsManagerRef {
    readonly source: 'bitwarden-secrets-manager' | 'bws';
    readonly id: string;
    readonly field?: string;
    readonly cli?: string;
    readonly accessTokenEnv?: string;
    readonly accessToken?: string;
    readonly profile?: string;
    readonly configFile?: string;
    readonly serverUrl?: string;
    readonly timeoutMs?: number;
}
export type SecretRef = EnvSecretRef | GoodVibesSecretRef | FileSecretRef | ExecSecretRef | OnePasswordSecretRef | BitwardenSecretRef | BitwardenSecretsManagerRef;
export type SecretRefInput = string | SecretRef;
export interface SecretCommandRunOptions {
    readonly env?: Record<string, string>;
    readonly stdin?: string;
    readonly timeoutMs?: number;
}
export interface SecretCommandRunResult {
    readonly exitCode: number;
    readonly stdout: string;
    readonly stderr: string;
}
export type SecretCommandRunner = (command: string, args: readonly string[], options?: SecretCommandRunOptions) => Promise<SecretCommandRunResult>;
export interface SecretRefResolutionOptions {
    readonly resolveLocalSecret?: (key: string) => Promise<string | null>;
    readonly runCommand?: SecretCommandRunner;
    readonly homeDirectory?: string;
}
export interface SecretRefResolution {
    readonly source: SecretProviderSource;
    readonly value: string | null;
}
export declare const BUILTIN_SECRET_PROVIDER_SOURCES: readonly SecretProviderSource[];
export declare function normalizeSecretRef(input: unknown): SecretRef | null;
export declare function isSecretRefInput(input: unknown): input is SecretRefInput;
export declare function getSecretRefSource(input: unknown): SecretProviderSource | null;
export declare function describeSecretRef(input: unknown): string;
export declare function resolveSecretRef(input: SecretRefInput, options?: SecretRefResolutionOptions): Promise<SecretRefResolution>;
//# sourceMappingURL=secret-refs.d.ts.map