import { readSecretFileSync } from "@nodmix/fs-safe/secret";

//#region src/infra/secret-file.d.ts
declare const DEFAULT_SECRET_FILE_MAX_BYTES: any;
declare const PRIVATE_SECRET_DIR_MODE: any;
declare const PRIVATE_SECRET_FILE_MODE: any;
declare function readSecretFileSync$1(...args: any[]): any;
declare function tryReadSecretFileSync(...args: any[]): any;
declare function writePrivateSecretFileAtomic(...args: any[]): any;
type SecretFileReadResult = {
  ok: true;
  secret: string;
  resolvedPath: string;
} | {
  ok: false;
  message: string;
  resolvedPath?: string;
  error?: unknown;
};
/** @deprecated Use readSecretFileSync() or tryReadSecretFileSync(). */
declare function loadSecretFileSync(filePath: string, label: string, options?: Parameters<typeof readSecretFileSync>[2]): SecretFileReadResult;
//#endregion
export { loadSecretFileSync as a, writePrivateSecretFileAtomic as c, SecretFileReadResult as i, PRIVATE_SECRET_DIR_MODE as n, readSecretFileSync$1 as o, PRIVATE_SECRET_FILE_MODE as r, tryReadSecretFileSync as s, DEFAULT_SECRET_FILE_MAX_BYTES as t };