export interface EnvelopeFields { run: string; from: string; to: string; task: string; id: string; } /** Decides whether a head's task tag is authentic: (sender, subject, taskId) => ok. */ export type EnvelopeVerify = (from: string, subject: string, task: string) => boolean; export declare const envelopeDirFor: (orgDir: string) => string; /** The org's MAC key, created on first use (0600) and stable across runs and resumes. */ export declare function loadEnvelopeKey(orgDir: string): Buffer; export declare function envelopeMac(key: Buffer, f: EnvelopeFields): string; /** Makes every routing tag in agent text inert: `[task:x]` becomes `(task:x)`. */ export declare function neutralizeTags(text: string): string; /** The sealed subject suffix for a task route. */ export declare function sealTag(key: Buffer, f: EnvelopeFields): string; /** A verifier for the mail `me` receives in `run`. */ export declare function envelopeVerifier(key: Buffer, run: string, me: string): EnvelopeVerify; //# sourceMappingURL=envelope.d.ts.map