UNPKG

histoire

Version:

A fast story book powered by Vite

18 lines • 1.15 kB
import type { AcpSettingsOverrides, AcpUserData } from './types.js'; /** Platform-appropriate private Histoire user settings file. */ export declare function agentUserDataFile(): string; /** Reads user-level secrets without ever returning them to a browser. */ export declare function readAgentUserData(file: string): Promise<AcpUserData>; /** Updates one user-level preference/credential record atomically with private modes. */ export declare function updateAgentUserData(file: string, root: string, settings?: AcpSettingsOverrides, environment?: { id: string; value: Record<string, string>; }): Promise<AcpUserData>; /** Redacts exact known secrets before any public projection. */ export declare function createAgentRedactor(environment: Record<string, string> | readonly Record<string, string>[], maximum?: number): (value: string) => string; /** Buffers enough raw tail to redact credentials spanning consecutive ACP chunks. */ export declare function createAgentOutputFilter(environment: Record<string, string>): { push: (text: string, final?: boolean) => string; finish: () => string; }; //# sourceMappingURL=user-data.d.ts.map