@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
17 lines • 1.09 kB
TypeScript
import type { DiscordAccessor } from '../../accessor/discord.ts';
import { DirListing, FileStat, type PathSpec } from '../../types.ts';
import { type Listed } from '../hierarchy/readdir.ts';
import type { ScopeMatch } from '../hierarchy/scope.ts';
/**
* The channel's day directories, newest first.
*
* A day dir is real for any well-formed date under the channel, so the bare
* listing is a window: the last `days` up to the newest message. A glob names
* its own window instead, clipped at the newest message because nothing was
* posted after it.
*/
export declare function dateRangeDescending(endDate: string, days?: number, span?: readonly [string, string] | null): string[];
export declare function listFiles(accessor: DiscordAccessor, match: ScopeMatch, own: FileStat): Promise<Listed>;
/** List a Discord directory; a channel Discord will not show is EACCES. */
export declare function readdir(accessor: DiscordAccessor, pathSpec: PathSpec, entry?: FileStat | null, parent?: FileStat | null, limit?: number): Promise<FileStat[] | DirListing>;
//# sourceMappingURL=readdir.d.ts.map