@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
19 lines • 1.02 kB
TypeScript
import { type DropboxEntry } from './api.ts';
import type { PathSpec } from '../../types.ts';
import type { DropboxAccessor } from '../../accessor/dropbox.ts';
/** Map a mount path to the Dropbox API path under the configured root. */
export declare function dropboxPathOf(accessor: DropboxAccessor, path: PathSpec): string;
/**
* Whether Dropbox answered for `path` with a name in another case.
*
* Dropbox matches a path case-insensitively, a listing does not: a file stored
* as `N` is not `n`. An answer without a name proves nothing, and calling it
* absent would let a write go out over a file that is there. Mirrors Python's
* `spelled_otherwise`.
*/
export declare function spelledOtherwise(path: PathSpec, entry: {
readonly name?: unknown;
} | null): boolean;
/** Validate existing components below the configured root, never accepting case aliases. */
export declare function checkPath(accessor: DropboxAccessor, path: PathSpec): Promise<DropboxEntry | null>;
//# sourceMappingURL=paths.d.ts.map