import { Dispatch, SetStateAction } from 'react';
import { Option } from '../select-v4';
export declare const DEFAULT_STATE: {
    data: any[];
    nextToken: string;
    isLoaded: boolean;
};
type UseSelectState<T> = {
    parent?: T;
};
export declare const useSelectState: <T extends Option>({ parent }?: UseSelectState<T>) => {
    state: {
        data: any[];
        nextToken: string;
        isLoaded: boolean;
    } | {
        data: T[];
        isLoaded: boolean;
        nextToken?: string;
    };
    setState: Dispatch<SetStateAction<{
        data: T[];
        isLoaded: boolean;
        nextToken?: string;
    }>>;
    resetState: () => void;
};
export {};
