import type { RicosAssetState, RicosInvocationEffects, RicosInvocationState } from '../../../../../ricos-window';
type AssistantWidgetStatus = Parameters<NonNullable<RicosAssetState<unknown>['updateAssistantWidgetStatus']>>[0];
export declare const INVOCATION_UPDATE_EVENT = "ricos-assistant-invocation-update";
export declare const getAssetState: <TEditorRef = unknown, TWorkspaceContext = unknown>(assetId: string) => RicosAssetState<TEditorRef, TWorkspaceContext> | undefined;
export declare const getAssetEditorRef: <TEditorRef = unknown>(assetId: string) => TEditorRef | undefined;
export declare const setAssetWaitingState: (assetId: string) => void;
export declare const clearAssetWaitingState: (assetId: string) => void;
export declare const setAssetWidgetStatus: (assetId: string, status: AssistantWidgetStatus) => Promise<void> | undefined;
export declare const getInvocation: (invocationId: string) => RicosInvocationState | undefined;
export declare const setInvocation: (invocationId: string, state: RicosInvocationState) => RicosInvocationState;
export declare const hasInvocationEffect: (invocationId: string, effect: keyof RicosInvocationEffects) => boolean;
export declare const setInvocationEffect: (invocationId: string, effect: keyof RicosInvocationEffects) => import("../../../../../ricos-window").InvocationWithEffects<{
    assetMode: 'create';
    phase: 'creatingAsset';
}> | ({
    assetMode: 'create';
    phase: 'startupFailed';
    error: {
        message: string;
    };
} & {
    effects?: RicosInvocationEffects;
}) | ({
    assetMode: 'existing';
    assetId: string;
} & {
    phase: 'startupFailed';
    error: {
        message: string;
    };
} & {
    effects?: RicosInvocationEffects;
}) | ({
    assetMode: 'existing';
    assetId: string;
} & {
    phase: 'initializing' | 'waitingForEditor' | 'started';
} & {
    effects?: RicosInvocationEffects;
}) | ({
    assetMode: 'create';
    assetId: string;
    generationId: string;
} & {
    phase: 'initializing' | 'waitingForEditor' | 'started';
} & {
    effects?: RicosInvocationEffects;
}) | undefined;
export declare const subscribeToInvocation: (invocationId: string, listener: (state: RicosInvocationState | undefined) => void) => () => void;
export {};
//# sourceMappingURL=runtime-store.d.ts.map