/**
 * @license
 * Copyright 2026 Amodal Labs, Inc.
 * SPDX-License-Identifier: MIT
 */
export type SecretOrigin = "runtime-env-ref" | "studio-db" | "external-env";
export interface StudioSecret {
    name: string;
    connection: string | null;
    set: boolean;
    origin: SecretOrigin;
    isSystem: boolean;
    hidden: boolean;
    canUpdate: boolean;
    canDelete: boolean;
    canReveal: boolean;
    updatedAt: string | null;
}
export interface ListSecretsOptions {
    includeHidden?: boolean;
}
export interface SecretValueResult {
    name: string;
    value: string;
}
export interface SecretsBackend {
    listSecrets(req: Request, options?: ListSecretsOptions): Promise<StudioSecret[]>;
    createOrUpdateSecret(req: Request, name: string, value: string): Promise<StudioSecret>;
    deleteSecret(req: Request, name: string): Promise<void>;
    revealSecret(req: Request, name: string): Promise<SecretValueResult>;
}
export declare function getSecretsBackend(): SecretsBackend;
export declare function setSecretsBackend(backend: SecretsBackend | null): void;
export declare function validateSecretName(name: string): boolean;
