import type { GoogleApiAccessor } from '../../accessor/google_api.ts';
import { DirListing, FileStat, type PathSpec } from '../../types.ts';
import type { DetectFn } from '../hierarchy/scope.ts';
export type AppReaddir = (accessor: GoogleApiAccessor, path: PathSpec) => Promise<FileStat[] | DirListing>;
/**
 * The readdir of a Google app mount: its corpora and their files. Sheets,
 * Docs and Slides list the same tree, one Drive query per corpus narrowed to
 * the app's MIME type, and differ only in what they name a file and how they
 * classify a path. Mirrors Python's `make_app_readdir`.
 */
export declare function makeAppReaddir(mime: string, detectScope: DetectFn, makeFilename: (title: string, fileId: string, modifiedTime: string) => string): AppReaddir;
//# sourceMappingURL=readdir.d.ts.map