openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
19 lines (18 loc) • 738 B
TypeScript
export declare const DEFAULT_SECRET_FILE_MAX_BYTES: number;
export type SecretFileReadOptions = {
maxBytes?: number;
rejectSymlink?: boolean;
};
export type SecretFileReadResult = {
ok: true;
secret: string;
resolvedPath: string;
} | {
ok: false;
message: string;
resolvedPath?: string;
error?: unknown;
};
export declare function loadSecretFileSync(filePath: string, label: string, options?: SecretFileReadOptions): SecretFileReadResult;
export declare function readSecretFileSync(filePath: string, label: string, options?: SecretFileReadOptions): string;
export declare function tryReadSecretFileSync(filePath: string | undefined, label: string, options?: SecretFileReadOptions): string | undefined;