@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
29 lines • 1.49 kB
TypeScript
import { IOResult, type ByteSource } from '../../../io/types.ts';
import type { PathSpec } from '../../../types.ts';
import { LineFacts, type MoveStrategy, type ReaddirFn, type StatFn } from '../../../types.ts';
import type { DispatchFn } from '../../../runtime/types.ts';
import { type BackendKeyFn } from '../utils/copy.ts';
import { type TransferLinks } from './cp.ts';
import type { FlagView } from '../../spec/flag_view.ts';
export interface MvFlags {
noClobber: boolean;
interactive: boolean;
verbose: boolean;
update: string | null;
backup: string | null;
suffix: string;
targetDir: PathSpec | null;
noTargetDir: boolean;
exchange: boolean;
noCopy: boolean;
}
export declare function mvFlags(init?: Partial<MvFlags>): MvFlags;
export declare function parseFlags(fl: FlagView): MvFlags;
export declare function mvGeneric(paths: PathSpec[], stat: StatFn, strategy: MoveStrategy, flags: MvFlags, backendKey?: BackendKeyFn, readdir?: ReaddirFn, guard?: (src: PathSpec, dst: PathSpec) => void, copies?: TransferLinks, stdin?: ByteSource | null, mountRoot?: (path: string) => boolean, dispatch?: DispatchFn): Promise<[ByteSource | null, IOResult]>;
/**
* An mv line moves each source with everything under it, never through a
* link, into the directory `-t` names if it names one. Mirrors Python's
* `facts`.
*/
export declare function facts(fl: FlagView, _operands: readonly (string | PathSpec)[]): LineFacts;
//# sourceMappingURL=mv.d.ts.map