@buttercup/googledrive-client
Version:
Basic client for Google Drive
15 lines (14 loc) • 667 B
TypeScript
import { HotPatcher } from "hot-patcher";
import { FileItem, FileTreeNode } from "../util/directoryContents.js";
export interface InternalGetDirectoryContentsOptions {
currentFiles?: Array<FileItem>;
formTree: boolean;
nextPageToken?: string;
patcher: HotPatcher;
token: string;
}
export interface PosixPathFileItem extends FileItem {
dirPath: string;
}
export declare function getDirectoryContents(options: InternalGetDirectoryContentsOptions): Promise<FileTreeNode | FileItem[]>;
export declare function mapDirectoryContents(token: string, patcher: HotPatcher, context: Record<string, any>, path: string): Promise<Array<PosixPathFileItem>>;