import type { Ref } from 'vue';
export type UseLoadingProps = {
    /**
     * The id of the SidebarLayout.
     * @defaultValue useId()
     */
    id?: string;
    /**
     * The storage to use for the size.
     * @defaultValue 'cookie'
     */
    storage?: 'cookie' | 'local';
    /**
     * Unique id used to auto-save size.
     * @defaultValue 'dashboard'
     */
    storageKey?: string;
};
export type UseLoadingReturn = {
    elLayout: Ref<HTMLElement | null>;
    isLoading: Ref<boolean>;
    load: (value?: boolean) => void;
};
export declare const useLoading: (_key: string, options?: Ref<UseLoadingProps> | UseLoadingProps, { loading }?: {
    loading?: Ref<boolean>;
}) => UseLoadingReturn;
