@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
13 lines • 780 B
TypeScript
import type { GmailAccessor } from '../../accessor/gmail.ts';
export declare const MSG_SUFFIX = ".gmail.json";
export declare const sanitize: (text: string, maxBytes?: number) => string;
/**
* 80 characters is 240 bytes of CJK, which overflows the 255-byte NAME_MAX
* once the id and `.gmail.json` are added; the filesystem rejects the name
* outright. So the subject takes what the id and the suffix leave.
*/
export declare function msgFilename(subject: string, msgId: string): string;
export declare function attachDirName(subject: string, msgId: string): string;
export declare function dateFromInternal(internalDate: string | undefined): string;
export declare const readdir: import("../hierarchy/probe.ts").ReaddirFn<GmailAccessor>;
//# sourceMappingURL=readdir.d.ts.map