@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
16 lines • 944 B
TypeScript
import type { GoogleApiAccessor } from '../../accessor/google_api.ts';
import type { FileStat, PathSpec } from '../../types.ts';
import { type DetectFn } from '../hierarchy/scope.ts';
/**
* The title a file name gives a file, null when the listing would render
* that title under any other name. Mirrors Python's `app_title`.
*/
export declare function appTitle(name: string, fileId: string, modified: string, suffix: string): string | null;
/**
* The rename of a Google app mount: a new title for a file. A file can take
* only a name the listing renders back (same folder, date and id); its
* modified time goes back unchanged, as rename(2) leaves it, and any other
* name is EPERM. Mirrors Python's `make_app_rename`.
*/
export declare function makeAppRename(detect: DetectFn, suffix: string): (accessor: GoogleApiAccessor, src: PathSpec, dst: PathSpec, entry?: FileStat | null) => Promise<void>;
//# sourceMappingURL=rename.d.ts.map