import { hotkeyFns } from './keyboard.js'; import type { ExtensionActions } from './types.js'; export declare const createRootContext: (namespace: string, transient: boolean) => { state: { addExtensionState: >(scope: string, createState: (args: { persist: (value: U) => U; }) => T) => T; getScopedState: , NonPartial extends boolean = false>(scope: string) => { readonly state: NonPartial extends true ? T_1 : Partial; }; removeScopedState: (scope: string) => void; persistState: (scope?: string | undefined) => void; state: Record>; }; actions: { addExtensionActions: (scope: string, extensionActions: ExtensionActions) => void; removeExtensionActions: (scope: string) => void; runAction: (scope: string, actionId: string, state: any, ...args: any[]) => void | Promise; }; createExtension: , Actions extends Record Promise | void>>(options: { scope: string; state: (args: { persist: (value: T_2) => T_2; }) => State; actions: { [K in keyof Actions]: (params: { state: State; }, ...args: Parameters) => ReturnType; }; keyMap?: ((utils: typeof hotkeyFns) => { [Key in keyof Actions]?: (Parameters extends [] ? string | string[] | { up?: string | string[] | undefined; down?: string | string[] | undefined; } : never) | undefined; }) | undefined; }) => Actions & { state: State; }; useExtension: , Actions_1 extends Record Promise | void>, NonPartial_1 extends boolean = false>(scope: string) => Actions_1 & { state: NonPartial_1 extends true ? State_1 : Partial; }; }; export declare const useStudio: () => { state: { addExtensionState: >(scope: string, createState: (args: { persist: (value: U) => U; }) => T) => T; getScopedState: , NonPartial extends boolean = false>(scope: string) => { readonly state: NonPartial extends true ? T_1 : Partial; }; removeScopedState: (scope: string) => void; persistState: (scope?: string | undefined) => void; state: Record>; }; actions: { addExtensionActions: (scope: string, extensionActions: ExtensionActions) => void; removeExtensionActions: (scope: string) => void; runAction: (scope: string, actionId: string, state: any, ...args: any[]) => void | Promise; }; createExtension: , Actions extends Record Promise | void>>(options: { scope: string; state: (args: { persist: (value: T_2) => T_2; }) => State; actions: { [K in keyof Actions]: (params: { state: State; }, ...args: Parameters) => ReturnType; }; keyMap?: ((utils: typeof hotkeyFns) => { [Key in keyof Actions]?: (Parameters extends [] ? string | string[] | { up?: string | string[] | undefined; down?: string | string[] | undefined; } : never) | undefined; }) | undefined; }) => Actions & { state: State; }; useExtension: , Actions_1 extends Record Promise | void>, NonPartial_1 extends boolean = false>(scope: string) => Actions_1 & { state: NonPartial_1 extends true ? State_1 : Partial; }; };