import type { IRequestDatalayerAPIOptions } from '../api/DatalayerApi';
export type IDatalayerRequestProps = {
    /**
     * React router login route
     *
     * @default '/login'
     */
    loginRoute?: string;
    /**
     * Notify user through toast on errors.
     *
     * @default true
     */
    notifyOnError?: boolean;
};
export interface DatalayerRequest extends IDatalayerRequestProps, IRequestDatalayerAPIOptions {
}
export declare function useDatalayer(props?: IDatalayerRequestProps): {
    requestDatalayer: <T = any>(request: DatalayerRequest) => Promise<T>;
};
export default useDatalayer;
