/** Credential fields that can be cleared or reset without changing a security scheme. */ export type AuthSecretField = 'x-scalar-secret-client-id' | 'x-scalar-secret-client-secret' | 'x-scalar-secret-password' | 'x-scalar-secret-redirect-uri' | 'x-scalar-secret-token' | 'x-scalar-secret-refresh-token' | 'x-scalar-secret-username' | 'x-scalar-secret-auth-url' | 'x-scalar-secret-token-url'; /** Legacy empty credentials still inherit defaults; only an explicit clear overrides them. */ export declare const isSecretFieldCleared: (secrets: object, field: string) => boolean; /** Record clear intent from the update, rather than from empty values filled by the store schema. */ export declare const updateClearedSecretFields: (secrets: Record, update: Record) => void; /** Release one override so its current document or configured default can take effect. */ export declare const resetSecretField: (secrets: Record, field: AuthSecretField) => void; /** * The value a field returns to when its stored override is reset, as computed by the merge. * Returns an empty string when the field has no document or configured default. */ export declare const getSecretFieldDefault: (secrets: object, field: AuthSecretField) => string; /** * Reset is only worth offering when it would restore a different value. With no default, Reset * would only clear the field, which the clear action already does. The fallback covers defaults * that only the UI knows about, such as the browser-derived redirect URI. */ export declare const canResetSecretField: (secrets: object, field: AuthSecretField, value: string | undefined, fallbackDefault?: string) => boolean; //# sourceMappingURL=auth-secret-fields.d.ts.map