@qite/tide-booking-component
Version:
React Booking wizard & Booking product component for Tide
14 lines (13 loc) • 507 B
TypeScript
import type { BookingPackage, Pax } from '@qite/tide-client/build/types';
export interface UseOfferPrinterArgs {
bookingPackage?: BookingPackage;
getPax: () => Pax[] | undefined;
tagIds?: number[];
printActionId?: number | null;
onPrinted?: (pdfUrl: string) => void;
}
export declare function useOfferPrinter({ bookingPackage, getPax, tagIds, printActionId, onPrinted }: UseOfferPrinterArgs): {
handlePrint: () => Promise<void>;
loading: boolean;
stage: 'idle' | 'creating' | 'printing';
};