/**
 * Copyright 2023 Kapeta Inc.
 * SPDX-License-Identifier: MIT
 */
import React, { Context, PropsWithChildren } from 'react';
import { Task } from '@kapeta/ui-web-context';
export type TaskGetter = (taskId: string, cb?: (task: Task) => void | Promise<void>) => TaskState;
interface DesktopContextData {
    version?: string;
    valid: boolean;
    getTask?: TaskGetter;
}
export declare const DesktopContext: Context<DesktopContextData>;
export declare const useDesktop: () => DesktopContextData;
interface DesktopContainerProps extends PropsWithChildren {
    version?: string;
    taskGetter?: TaskGetter;
}
export declare const DesktopContainer: (props: DesktopContainerProps) => React.JSX.Element;
export interface TaskState {
    task: Task | null;
    active: boolean;
    ready: boolean;
}
export {};
