import { FinderIconSize, FinderSortKey } from './FinderContext'; export declare const iconViewIconSize: (themeBase: number, step: FinderIconSize) => number; export declare const listViewIconSize: (themeBase: number, step: FinderIconSize) => number; /** * The subset of file-system metadata the six Mac OS 8 sort keys need, named * without the `_` prefix so callers must map deliberately rather than passing * a raw entry and silently sorting by a field that does not exist. */ export type FinderSortableEntry = { name: string; modifiedOn?: Date; createdOn?: Date; size?: number; kind?: string; label?: string; }; /** * Comparators for "Keep arranged by". Entries missing the sort field always * sort last, and every comparator breaks ties by name so the layout is * deterministic — icon positions are derived from this order, and an unstable * sort would make icons jump between renders. */ export declare const finderEntryComparator: (key: FinderSortKey) => (a: FinderSortableEntry, b: FinderSortableEntry) => number; /** * Formats a list-view date column. Both `value` and `now` must already be in * the SAME frame — the caller converts the store's virtual clock with * `toLocalDate(dateTime, tzOffset)` and passes the result as `now`. Mixing an * in-world "now" with a raw UTC file date would make "Today" wrong by the * timezone offset, so the conversion deliberately lives at the call site and * this function stays pure. * * Formatting is hand-rolled rather than Intl-based so the output is identical * in every locale the tests and the app might run under. */ export declare const formatFinderDate: (value: Date | undefined, now: Date, relative: boolean) => string; /** * Coerces a file-system date field into a Date. `ClassicyFileSystem` persists * its tree through JSON.stringify/JSON.parse, so a field seeded as a Date * comes back as an ISO string — calling Date methods on it would throw. * Everything reading `_modifiedOn` / `_createdOn` goes through here. */ export declare const asFinderDate: (value: unknown) => Date | undefined; //# sourceMappingURL=FinderViewOptions.d.ts.map