import React from 'react'; import PropTypes from 'prop-types'; export declare const PENDING_MEDIA_ENTRY_ID = "maybe"; declare class FileBrowser extends React.Component { state: { collections: { 0: { id: number; collections: never[]; }; }; items: {}; openFolders: never[]; loadingCount: number; }; source: any; static propTypes: { allowUpload: PropTypes.Requireable; selectFile: PropTypes.Validator<(...args: any[]) => any>; contentTypes: PropTypes.Requireable<(string | null | undefined)[]>; useContextAssets: PropTypes.Requireable; searchString: PropTypes.Requireable; onLoading: PropTypes.Validator<(...args: any[]) => any>; context: PropTypes.Validator; id: PropTypes.Validator; }>>>; }; static defaultProps: { allowUpload: boolean; contentTypes: string[]; useContextAssets: boolean; }; constructor(props: any); componentDidMount(): void; componentDidUpdate(): void; getContextName(contextType: any): string; getRootFolders(): void; getUserFolders(): void; getContextFolders(): void; increaseLoadingCount(): void; decreaseLoadingCount(): void; getRootFolderData(context: any, contextId: any, opts?: {}): void; populateRootFolder(data: any, opts?: {}): void; /** @type {(id: number) => void} */ fetchSubFolders: (id: number) => void; fetchFiles(id: any): void; getFolderData(id: any): void; populateCollectionsList: (folderList: any, opts: {} | undefined, callback: any) => void; contentTypeIsAllowed(contentType: any): boolean; populateItemsList: (fileList: any) => void; formatFolderInfo(apiFolder: any, opts?: {}): { api: any; id: any; collections: never[]; items: never[]; name: any; context: string; canUpload: any; locked: any; descriptor: string | null; }; updatePropsWithThumbnailOrIcon(props: any): any; formatFileInfo(apiFile: any, opts?: {}): { api: any; id: any; name: any; isDisabled: boolean; src: string; alt: any; }; orderedIdsFromList(list: any, ids: any): any; onFolderToggle: (folder: any) => void; onFileClick: (file: any) => void; findFolderForFile(file: any): any; setFailureMessage: (message: any) => void; renderLoading(): React.JSX.Element | null; render(): React.JSX.Element; } export default FileBrowser;