import type { PermissionSubjectBusinessNamespace } from '@feedmepos/hrm-permission'; import { type CreateOrderChoice, type SourceOption } from '../../helper/create-order-selection'; export interface CreateOrderPorts { templates: { list(): FdoPurchaseOrderTemplate[]; loading(): boolean; }; sources: { currentLocationId(): string; }; permissions: { has(subject: PermissionSubjectBusinessNamespace | null): boolean; }; netsuite: { subsidiaryError(supplier: FdoPurchaseOrderSupplier): string | undefined; }; } export interface CreateOrderPreset { show?: boolean; supplierId?: string; } export declare const kindLabels: Record; export declare function useDefaultCreateOrderPorts(): CreateOrderPorts; export declare function useCreateOrderDialog(preset: () => CreateOrderPreset, onSelect: (choice: CreateOrderChoice) => void, ports?: CreateOrderPorts): { viewState: import("vue").ComputedRef<{ loading: boolean; sidebar: { groups: { id: string; name: string; kind: SourceOption; kindLabel: string; count: number; }[]; selectedId: string | null; query: string; total: number; }; templates: { title: string; kind: string | undefined; showSource: boolean; showBlank: boolean; query: string; entries: { id: string; name: string; invalidReason: string | undefined; sourceName: string; itemCount: number; time: string; }[]; }; }>; actions: { selectSidebar(sourceId: string | null): void; searchSidebar(query: string): void; searchTemplates(query: string): void; pickTemplate(templateId: string): void; startBlank(): void; }; };