import React, { ReactElement } from 'react';
import { Connection, File } from '../types';
export interface Props {
    /**
     * The JSON Web Token returned from the Create Session call
     */
    token: string;
    /**
     * The function that gets called when a file is selected
     */
    onSelect?: (file: File) => any;
    /**
     * The function that gets called when a connection is selected
     */
    onConnectionSelect?: (connection: Connection) => any;
    /**
     * The component that should trigger the File Picker modal on click
     */
    trigger?: ReactElement;
    /**
     * Title shown in the modal
     */
    title?: string;
    /**
     * Subtitle shown in the modal
     */
    subTitle?: string;
    /**
     * Show powered by Apideck in the modal backdrop
     */
    showAttribution?: boolean;
    /**
     * Opens the file picker if set to true
     */
    open?: boolean;
    /**
     * Callback function that gets called when the modal is closed
     */
    onClose?: () => any;
    /**
     * File to save. Forces the FilePicker to go in "Upload" mode and only
     * allows to change the file name and select the folder to upload the provided file to
     */
    fileToSave?: File | any;
}
export declare const EventsContext: React.Context<{
    onSelect: undefined;
}>;
/**
 * The Apideck File Picker component
 */
export declare const FilePicker: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLElement>>;
