import type { IndexCacheStore } from '../../cache/index/store.ts'; import type { FindOptions } from '../../resource/base.ts'; import { FileStat, PathSpec } from '../../types.ts'; import type { MsGraphConfigResolved } from './config.ts'; export type DriveUrl = (path: string, action?: string) => string; export type DriveRef = (folder?: string) => string; export declare class DriveLoc { readonly drive: string; readonly path: string; readonly virtual: string; private readonly url; private readonly ref; constructor(init: { drive: string; path: string; virtual: string; url: DriveUrl; ref: DriveRef; }); item(action?: string): string; itemAt(path: string, action?: string): string; child(name: string): DriveLoc; parent(): string; reference(folder?: string): string; } export declare function asNumber(value: unknown): number | null; export declare function folderChildCount(item: Record): number | null; export declare function copyTree(config: MsGraphConfigResolved, src: DriveLoc, dst: DriveLoc): Promise; export declare function renameReplace(config: MsGraphConfigResolved, src: DriveLoc, dst: DriveLoc): Promise; export declare function createChildFolder(config: MsGraphConfigResolved, parentUrl: string, name: string): Promise; export declare function writeItem(config: MsGraphConfigResolved, loc: DriveLoc, data: Uint8Array): Promise; export declare function readItem(config: MsGraphConfigResolved, loc: DriveLoc, virtual: string, label: string, backend: string, offset?: number, size?: number | null): Promise; export declare function streamItem(config: MsGraphConfigResolved, loc: DriveLoc, virtual: string, label: string, backend: string): AsyncIterable; export declare function duTreeTotal(config: MsGraphConfigResolved, loc: DriveLoc): Promise; export declare function duTreeEntries(config: MsGraphConfigResolved, loc: DriveLoc): Promise<[[string, number][], number]>; export interface DriveWalk { depthOffset?: number; emitStart?: boolean; } export declare function findItems(config: MsGraphConfigResolved, loc: DriveLoc, startName: string, dirExists: () => Promise, options?: FindOptions, walk?: DriveWalk): Promise; export declare function driveRootEmpty(config: MsGraphConfigResolved, loc: DriveLoc): Promise; export declare function readdirItems(config: MsGraphConfigResolved, loc: DriveLoc, index: IndexCacheStore | undefined, prefix: string, stripped: string, virtualKey: string, path: PathSpec): Promise; export declare function statItem(config: MsGraphConfigResolved, loc: DriveLoc, path: PathSpec, virtualKey: string, index?: IndexCacheStore): Promise; export declare function makeExists(stat: (accessor: A, path: PathSpec) => Promise): (accessor: A, path: PathSpec) => Promise; export declare function makeTruncate(read: (accessor: A, path: PathSpec) => Promise, write: (accessor: A, path: PathSpec, data: Uint8Array) => Promise): (accessor: A, path: PathSpec, length: number) => Promise; //# sourceMappingURL=drive.d.ts.map