import { type ComputedRef, type InjectionKey } from 'vue'; import type { ActionSetContext, ActionSetPreview, ActionSetSlotId } from '../types'; export type CreateActionSetOptions = { doctype: ComputedRef; recordId: ComputedRef; }; /** * The only owner of what the drawer shows. ActionSet and Desktop both read it, so the tile * column, the drawer and the workspace margin cannot disagree about whether the drawer is open. */ export type ActionSetController = ActionSetContext & { previewSubject: ComputedRef; isPreviewOpen: ComputedRef; isActionsOpen: ComputedRef; isDrawerOpen: ComputedRef; openActions: () => void; openSlot: (slotId: ActionSetSlotId) => void; }; export declare const actionSetKey: InjectionKey; export declare function createActionSet(options: CreateActionSetOptions): ActionSetController; /** @public */ export declare function useActionSet(): ActionSetContext; //# sourceMappingURL=useActionSet.d.ts.map