import type { Body, DefinePluginOpts, Meta, PartialTree, PartialTreeFile, PartialTreeFolderNode, UnknownSearchProviderPlugin } from '@uppy/core'; import type { CompanionFile } from '@uppy/utils'; import type { h } from 'preact'; interface Opts { provider: UnknownSearchProviderPlugin['provider']; viewType?: 'list' | 'grid' | 'unsplash'; showTitles?: boolean; showFilter?: boolean; utmSource?: string; } type RenderOpts = Omit, 'provider'>; declare const defaultOptions: { viewType: "grid"; showTitles: boolean; showFilter: boolean; utmSource: string; }; /** * SearchProviderView, used for Unsplash and future image search providers. * Extends generic View, shared with regular providers like Google Drive and Instagram. */ export default class SearchProviderView { static VERSION: string; plugin: UnknownSearchProviderPlugin; provider: UnknownSearchProviderPlugin['provider']; opts: DefinePluginOpts, keyof typeof defaultOptions>; isHandlingScroll: boolean; lastCheckbox: string | null; constructor(plugin: UnknownSearchProviderPlugin, opts: Opts); tearDown(): void; setLoading(loading: boolean | string): void; resetPluginState(): void; cancelSelection(): void; search(): Promise; handleScroll(event: Event): Promise; donePicking(): Promise; toggleCheckbox(ourItem: PartialTreeFolderNode | PartialTreeFile, isShiftKeyPressed: boolean): void; validateSingleFile: (file: CompanionFile) => string | null; getDisplayedPartialTree: () => (PartialTreeFile | PartialTreeFolderNode)[]; setSearchString: (searchString: string) => void; validateAggregateRestrictions: (partialTree: PartialTree) => string | null; render(state: unknown, viewOptions?: RenderOpts): h.JSX.Element; } export {}; //# sourceMappingURL=SearchProviderView.d.ts.map