import { WNode, WNodeProps } from './types'; import { EntryKind } from '../lib/directory-reader'; import { FilePickerMode } from '../state/file-picker'; export type FilePickerVisibleEntry = { name: string; displayName: string; path: string; kind: EntryKind; symlinkTargetKind?: EntryKind; symlinkTargetBasename?: string; size: string; isSelected: boolean; isFocused: boolean; }; export type FilePickerViewState = { currentPath: string; visibleEntries: FilePickerVisibleEntry[]; mode: FilePickerMode; filterText: string; multiSelect: boolean; showDetails: boolean; errorMessage?: string; hasScrollUp: boolean; hasScrollDown: boolean; scrollUpCount: number; scrollDownCount: number; }; export type FilePickerRenderTheme = { styles: { container: () => WNodeProps; header: () => WNodeProps; headerPath: () => WNodeProps; entryRow: (props: { isFocused: boolean; kind: EntryKind; }) => WNodeProps; entryIcon: (props: { kind: EntryKind; }) => WNodeProps; entryName: (props: { isFocused: boolean; kind: EntryKind; }) => WNodeProps; entrySize: () => WNodeProps; checkbox: (props: { isSelected: boolean; }) => WNodeProps; focusIndicator: () => WNodeProps; filterRow: () => WNodeProps; filterInput: () => WNodeProps; filterPrefix: () => WNodeProps; scrollIndicator: () => WNodeProps; loading: () => WNodeProps; error: () => WNodeProps; }; config: () => { directoryIcon: string; fileIcon: string; symlinkIcon: string; checkedIcon: string; uncheckedIcon: string; filterPrefix: string; }; }; export declare const defaultFilePickerTheme: FilePickerRenderTheme; export declare function renderFilePicker(state: FilePickerViewState, theme?: FilePickerRenderTheme): WNode; //# sourceMappingURL=render-file-picker.d.ts.map