/// <reference path="../../../src/base-types.d.ts" />
import { ReactNode } from 'react';
import { Credentials } from '../../types';
export type LivePreviewStatus = {
    lastHashTarget: string;
    uploading: boolean;
    active: boolean;
    deploymentUrl?: string | null;
    lastHash?: string;
    loading?: boolean;
    status?: 'loading' | 'inProgress' | 'running';
    deploymentId?: number;
    url?: string;
};
export type LivePreviewContextProps = {
    credentials: Credentials | null;
    livePreviewDisabled: Boolean;
    statusLivePreview: LivePreviewStatus;
    createTokenWithPayload: (payload: any) => Promise<any>;
    stopLivePreview: () => Promise<Boolean>;
    startLivePreview: () => Promise<Boolean>;
};
export declare const LivePreviewContextContext: import("react").Context<LivePreviewContextProps | null>;
type LivePreviewContextProviderProps = {
    disabled: boolean;
    children: ReactNode;
};
export declare function LivePreviewContextProvider({ disabled, children, }: LivePreviewContextProviderProps): import("react/jsx-runtime").JSX.Element;
export {};
