import { type ColumnDef } from '@feedmepos/ui-library'; import type { CursorPageRequest, CursorPageResponse } from '@/components/cursor-paginated-table/CursorPaginatedTable.vue'; import { type RevisionIdMeta } from '@feedmepos/inventory-core'; type DraftWithDisplay = FdtoClosingDraftListItem & RevisionIdMeta & { closingIdDisplay: string | null; }; export declare const useClosingDraftTable: import("pinia").StoreDefinition<"closingDraftTable", import("pinia")._UnwrapAll[]; drafts: import("vue").Ref<{ _rev: string; remark?: string | null | undefined; effectiveAt?: string | null | undefined; parentId?: string | null | undefined; approvedAt?: string | null | undefined; approveRemark?: string | null | undefined; rejectionHistory?: { rejectedAt: string; rejectedBy: { name: string; id: string; }; rejectRemark: string; }[] | null | undefined; closingId?: string | null | undefined; status: "DRAFT" | "COMPLETED" | "FAILED" | "PROCESSING" | "PENDING_APPROVAL"; _id: string; updatedAt: string; createdAt: string; updatedBy: { name: string; id: string; }; createdBy: { name: string; id: string; }; itemCount: number; groups: { updatedAt?: string | null | undefined; updatedBy?: string | null | undefined; rejectionHistory?: { rejectedAt: string; rejectedBy: { name: string; id: string; }; rejectRemark: string; }[] | null | undefined; countedBy?: string | null | undefined; verifiedBy?: string | null | undefined; code: string; status: "DRAFT" | "COMPLETED" | "FAILED" | "PROCESSING" | "PENDING_APPROVAL"; name: string; id: string; itemCount: number; totalAmount: number; countedCount: number; }[]; usingTemplates: { _rev?: string | null | undefined; updatedAt?: string | null | undefined; ref?: string | null | undefined; locations?: { inventory?: { _id: string; updatedAt: string; } | null | undefined; type: "restaurant" | "warehouse"; name: string; acceptRequest: boolean; dbName: string; doc: { _id: string; businessId: string; profile: { code?: string | null | undefined; url?: string | null | undefined; description?: string | null | undefined; _id?: string | null | undefined; legalName?: string | null | undefined; sstRegNo?: string | null | undefined; discovery?: boolean | null | undefined; coverPhoto?: string | null | undefined; thumbnailPhoto?: string | null | undefined; photos?: string[] | null | undefined; operatingHours?: { 0: { hours: { end: string; start: string; }[]; enable: boolean; }; 2: { hours: { end: string; start: string; }[]; enable: boolean; }; 1: { hours: { end: string; start: string; }[]; enable: boolean; }; 3: { hours: { end: string; start: string; }[]; enable: boolean; }; 4: { hours: { end: string; start: string; }[]; enable: boolean; }; 5: { hours: { end: string; start: string; }[]; enable: boolean; }; 6: { hours: { end: string; start: string; }[]; enable: boolean; }; } | null | undefined; tags?: string[] | null | undefined; name: string; address: { coordinates?: number[] | null | undefined; line2?: string | null | undefined; state: string; country: string; line1: string; city: string; postcode: string; }; email: string; phoneNo: string; regNo: string; }; }; }[] | null | undefined; updatedBy?: { name: string; id: string; } | null | undefined; groups?: { name: string; id: string; items: { disabledMeasurements?: string[] | null | undefined; position?: number | null | undefined; skuId: string; }[]; }[] | null | undefined; _id: string; name: string; }[]; previewItemNames: string[]; negativeStockItemCount: number; closingIdDisplay: string | null; }[], DraftWithDisplay[] | { _rev: string; remark?: string | null | undefined; effectiveAt?: string | null | undefined; parentId?: string | null | undefined; approvedAt?: string | null | undefined; approveRemark?: string | null | undefined; rejectionHistory?: { rejectedAt: string; rejectedBy: { name: string; id: string; }; rejectRemark: string; }[] | null | undefined; closingId?: string | null | undefined; status: "DRAFT" | "COMPLETED" | "FAILED" | "PROCESSING" | "PENDING_APPROVAL"; _id: string; updatedAt: string; createdAt: string; updatedBy: { name: string; id: string; }; createdBy: { name: string; id: string; }; itemCount: number; groups: { updatedAt?: string | null | undefined; updatedBy?: string | null | undefined; rejectionHistory?: { rejectedAt: string; rejectedBy: { name: string; id: string; }; rejectRemark: string; }[] | null | undefined; countedBy?: string | null | undefined; verifiedBy?: string | null | undefined; code: string; status: "DRAFT" | "COMPLETED" | "FAILED" | "PROCESSING" | "PENDING_APPROVAL"; name: string; id: string; itemCount: number; totalAmount: number; countedCount: number; }[]; usingTemplates: { _rev?: string | null | undefined; updatedAt?: string | null | undefined; ref?: string | null | undefined; locations?: { inventory?: { _id: string; updatedAt: string; } | null | undefined; type: "restaurant" | "warehouse"; name: string; acceptRequest: boolean; dbName: string; doc: { _id: string; businessId: string; profile: { code?: string | null | undefined; url?: string | null | undefined; description?: string | null | undefined; _id?: string | null | undefined; legalName?: string | null | undefined; sstRegNo?: string | null | undefined; discovery?: boolean | null | undefined; coverPhoto?: string | null | undefined; thumbnailPhoto?: string | null | undefined; photos?: string[] | null | undefined; operatingHours?: { 0: { hours: { end: string; start: string; }[]; enable: boolean; }; 2: { hours: { end: string; start: string; }[]; enable: boolean; }; 1: { hours: { end: string; start: string; }[]; enable: boolean; }; 3: { hours: { end: string; start: string; }[]; enable: boolean; }; 4: { hours: { end: string; start: string; }[]; enable: boolean; }; 5: { hours: { end: string; start: string; }[]; enable: boolean; }; 6: { hours: { end: string; start: string; }[]; enable: boolean; }; } | null | undefined; tags?: string[] | null | undefined; name: string; address: { coordinates?: number[] | null | undefined; line2?: string | null | undefined; state: string; country: string; line1: string; city: string; postcode: string; }; email: string; phoneNo: string; regNo: string; }; }; }[] | null | undefined; updatedBy?: { name: string; id: string; } | null | undefined; groups?: { name: string; id: string; items: { disabledMeasurements?: string[] | null | undefined; position?: number | null | undefined; skuId: string; }[]; }[] | null | undefined; _id: string; name: string; }[]; previewItemNames: string[]; negativeStockItemCount: number; closingIdDisplay: string | null; }[]>; loading: import("vue").Ref; tableKey: import("vue").Ref; dateRange: import("vue").Ref<{ startDate: string; endDate: string; }, { startDate: string; endDate: string; } | { startDate: string; endDate: string; }>; setDateRange: (range: { startDate: string; endDate: string; }) => { startDate: string; endDate: string; }; detailToRow: (detail: FdtoClosingDraftListItemDetail & RevisionIdMeta, row: DraftWithDisplay) => Promise; refreshDraftGroups: (draftId: string) => Promise; fetchDraftsPage: (request: CursorPageRequest) => Promise; transformDrafts: (docs: (FdtoClosingDraftListItem & RevisionIdMeta)[]) => DraftWithDisplay[]; refresh: () => void; onLocationChanged: () => Promise; loadDraft: (draftId: string) => Promise; updateDraftRef: (draft: FdoClosingDraft) => Promise; }, "loading" | "columnDefs" | "dateRange" | "tableKey" | "drafts">>, Pick<{ columnDefs: ColumnDef[]; drafts: import("vue").Ref<{ _rev: string; remark?: string | null | undefined; effectiveAt?: string | null | undefined; parentId?: string | null | undefined; approvedAt?: string | null | undefined; approveRemark?: string | null | undefined; rejectionHistory?: { rejectedAt: string; rejectedBy: { name: string; id: string; }; rejectRemark: string; }[] | null | undefined; closingId?: string | null | undefined; status: "DRAFT" | "COMPLETED" | "FAILED" | "PROCESSING" | "PENDING_APPROVAL"; _id: string; updatedAt: string; createdAt: string; updatedBy: { name: string; id: string; }; createdBy: { name: string; id: string; }; itemCount: number; groups: { updatedAt?: string | null | undefined; updatedBy?: string | null | undefined; rejectionHistory?: { rejectedAt: string; rejectedBy: { name: string; id: string; }; rejectRemark: string; }[] | null | undefined; countedBy?: string | null | undefined; verifiedBy?: string | null | undefined; code: string; status: "DRAFT" | "COMPLETED" | "FAILED" | "PROCESSING" | "PENDING_APPROVAL"; name: string; id: string; itemCount: number; totalAmount: number; countedCount: number; }[]; usingTemplates: { _rev?: string | null | undefined; updatedAt?: string | null | undefined; ref?: string | null | undefined; locations?: { inventory?: { _id: string; updatedAt: string; } | null | undefined; type: "restaurant" | "warehouse"; name: string; acceptRequest: boolean; dbName: string; doc: { _id: string; businessId: string; profile: { code?: string | null | undefined; url?: string | null | undefined; description?: string | null | undefined; _id?: string | null | undefined; legalName?: string | null | undefined; sstRegNo?: string | null | undefined; discovery?: boolean | null | undefined; coverPhoto?: string | null | undefined; thumbnailPhoto?: string | null | undefined; photos?: string[] | null | undefined; operatingHours?: { 0: { hours: { end: string; start: string; }[]; enable: boolean; }; 2: { hours: { end: string; start: string; }[]; enable: boolean; }; 1: { hours: { end: string; start: string; }[]; enable: boolean; }; 3: { hours: { end: string; start: string; }[]; enable: boolean; }; 4: { hours: { end: string; start: string; }[]; enable: boolean; }; 5: { hours: { end: string; start: string; }[]; enable: boolean; }; 6: { hours: { end: string; start: string; }[]; enable: boolean; }; } | null | undefined; tags?: string[] | null | undefined; name: string; address: { coordinates?: number[] | null | undefined; line2?: string | null | undefined; state: string; country: string; line1: string; city: string; postcode: string; }; email: string; phoneNo: string; regNo: string; }; }; }[] | null | undefined; updatedBy?: { name: string; id: string; } | null | undefined; groups?: { name: string; id: string; items: { disabledMeasurements?: string[] | null | undefined; position?: number | null | undefined; skuId: string; }[]; }[] | null | undefined; _id: string; name: string; }[]; previewItemNames: string[]; negativeStockItemCount: number; closingIdDisplay: string | null; }[], DraftWithDisplay[] | { _rev: string; remark?: string | null | undefined; effectiveAt?: string | null | undefined; parentId?: string | null | undefined; approvedAt?: string | null | undefined; approveRemark?: string | null | undefined; rejectionHistory?: { rejectedAt: string; rejectedBy: { name: string; id: string; }; rejectRemark: string; }[] | null | undefined; closingId?: string | null | undefined; status: "DRAFT" | "COMPLETED" | "FAILED" | "PROCESSING" | "PENDING_APPROVAL"; _id: string; updatedAt: string; createdAt: string; updatedBy: { name: string; id: string; }; createdBy: { name: string; id: string; }; itemCount: number; groups: { updatedAt?: string | null | undefined; updatedBy?: string | null | undefined; rejectionHistory?: { rejectedAt: string; rejectedBy: { name: string; id: string; }; rejectRemark: string; }[] | null | undefined; countedBy?: string | null | undefined; verifiedBy?: string | null | undefined; code: string; status: "DRAFT" | "COMPLETED" | "FAILED" | "PROCESSING" | "PENDING_APPROVAL"; name: string; id: string; itemCount: number; totalAmount: number; countedCount: number; }[]; usingTemplates: { _rev?: string | null | undefined; updatedAt?: string | null | undefined; ref?: string | null | undefined; locations?: { inventory?: { _id: string; updatedAt: string; } | null | undefined; type: "restaurant" | "warehouse"; name: string; acceptRequest: boolean; dbName: string; doc: { _id: string; businessId: string; profile: { code?: string | null | undefined; url?: string | null | undefined; description?: string | null | undefined; _id?: string | null | undefined; legalName?: string | null | undefined; sstRegNo?: string | null | undefined; discovery?: boolean | null | undefined; coverPhoto?: string | null | undefined; thumbnailPhoto?: string | null | undefined; photos?: string[] | null | undefined; operatingHours?: { 0: { hours: { end: string; start: string; }[]; enable: boolean; }; 2: { hours: { end: string; start: string; }[]; enable: boolean; }; 1: { hours: { end: string; start: string; }[]; enable: boolean; }; 3: { hours: { end: string; start: string; }[]; enable: boolean; }; 4: { hours: { end: string; start: string; }[]; enable: boolean; }; 5: { hours: { end: string; start: string; }[]; enable: boolean; }; 6: { hours: { end: string; start: string; }[]; enable: boolean; }; } | null | undefined; tags?: string[] | null | undefined; name: string; address: { coordinates?: number[] | null | undefined; line2?: string | null | undefined; state: string; country: string; line1: string; city: string; postcode: string; }; email: string; phoneNo: string; regNo: string; }; }; }[] | null | undefined; updatedBy?: { name: string; id: string; } | null | undefined; groups?: { name: string; id: string; items: { disabledMeasurements?: string[] | null | undefined; position?: number | null | undefined; skuId: string; }[]; }[] | null | undefined; _id: string; name: string; }[]; previewItemNames: string[]; negativeStockItemCount: number; closingIdDisplay: string | null; }[]>; loading: import("vue").Ref; tableKey: import("vue").Ref; dateRange: import("vue").Ref<{ startDate: string; endDate: string; }, { startDate: string; endDate: string; } | { startDate: string; endDate: string; }>; setDateRange: (range: { startDate: string; endDate: string; }) => { startDate: string; endDate: string; }; detailToRow: (detail: FdtoClosingDraftListItemDetail & RevisionIdMeta, row: DraftWithDisplay) => Promise; refreshDraftGroups: (draftId: string) => Promise; fetchDraftsPage: (request: CursorPageRequest) => Promise; transformDrafts: (docs: (FdtoClosingDraftListItem & RevisionIdMeta)[]) => DraftWithDisplay[]; refresh: () => void; onLocationChanged: () => Promise; loadDraft: (draftId: string) => Promise; updateDraftRef: (draft: FdoClosingDraft) => Promise; }, never>, Pick<{ columnDefs: ColumnDef[]; drafts: import("vue").Ref<{ _rev: string; remark?: string | null | undefined; effectiveAt?: string | null | undefined; parentId?: string | null | undefined; approvedAt?: string | null | undefined; approveRemark?: string | null | undefined; rejectionHistory?: { rejectedAt: string; rejectedBy: { name: string; id: string; }; rejectRemark: string; }[] | null | undefined; closingId?: string | null | undefined; status: "DRAFT" | "COMPLETED" | "FAILED" | "PROCESSING" | "PENDING_APPROVAL"; _id: string; updatedAt: string; createdAt: string; updatedBy: { name: string; id: string; }; createdBy: { name: string; id: string; }; itemCount: number; groups: { updatedAt?: string | null | undefined; updatedBy?: string | null | undefined; rejectionHistory?: { rejectedAt: string; rejectedBy: { name: string; id: string; }; rejectRemark: string; }[] | null | undefined; countedBy?: string | null | undefined; verifiedBy?: string | null | undefined; code: string; status: "DRAFT" | "COMPLETED" | "FAILED" | "PROCESSING" | "PENDING_APPROVAL"; name: string; id: string; itemCount: number; totalAmount: number; countedCount: number; }[]; usingTemplates: { _rev?: string | null | undefined; updatedAt?: string | null | undefined; ref?: string | null | undefined; locations?: { inventory?: { _id: string; updatedAt: string; } | null | undefined; type: "restaurant" | "warehouse"; name: string; acceptRequest: boolean; dbName: string; doc: { _id: string; businessId: string; profile: { code?: string | null | undefined; url?: string | null | undefined; description?: string | null | undefined; _id?: string | null | undefined; legalName?: string | null | undefined; sstRegNo?: string | null | undefined; discovery?: boolean | null | undefined; coverPhoto?: string | null | undefined; thumbnailPhoto?: string | null | undefined; photos?: string[] | null | undefined; operatingHours?: { 0: { hours: { end: string; start: string; }[]; enable: boolean; }; 2: { hours: { end: string; start: string; }[]; enable: boolean; }; 1: { hours: { end: string; start: string; }[]; enable: boolean; }; 3: { hours: { end: string; start: string; }[]; enable: boolean; }; 4: { hours: { end: string; start: string; }[]; enable: boolean; }; 5: { hours: { end: string; start: string; }[]; enable: boolean; }; 6: { hours: { end: string; start: string; }[]; enable: boolean; }; } | null | undefined; tags?: string[] | null | undefined; name: string; address: { coordinates?: number[] | null | undefined; line2?: string | null | undefined; state: string; country: string; line1: string; city: string; postcode: string; }; email: string; phoneNo: string; regNo: string; }; }; }[] | null | undefined; updatedBy?: { name: string; id: string; } | null | undefined; groups?: { name: string; id: string; items: { disabledMeasurements?: string[] | null | undefined; position?: number | null | undefined; skuId: string; }[]; }[] | null | undefined; _id: string; name: string; }[]; previewItemNames: string[]; negativeStockItemCount: number; closingIdDisplay: string | null; }[], DraftWithDisplay[] | { _rev: string; remark?: string | null | undefined; effectiveAt?: string | null | undefined; parentId?: string | null | undefined; approvedAt?: string | null | undefined; approveRemark?: string | null | undefined; rejectionHistory?: { rejectedAt: string; rejectedBy: { name: string; id: string; }; rejectRemark: string; }[] | null | undefined; closingId?: string | null | undefined; status: "DRAFT" | "COMPLETED" | "FAILED" | "PROCESSING" | "PENDING_APPROVAL"; _id: string; updatedAt: string; createdAt: string; updatedBy: { name: string; id: string; }; createdBy: { name: string; id: string; }; itemCount: number; groups: { updatedAt?: string | null | undefined; updatedBy?: string | null | undefined; rejectionHistory?: { rejectedAt: string; rejectedBy: { name: string; id: string; }; rejectRemark: string; }[] | null | undefined; countedBy?: string | null | undefined; verifiedBy?: string | null | undefined; code: string; status: "DRAFT" | "COMPLETED" | "FAILED" | "PROCESSING" | "PENDING_APPROVAL"; name: string; id: string; itemCount: number; totalAmount: number; countedCount: number; }[]; usingTemplates: { _rev?: string | null | undefined; updatedAt?: string | null | undefined; ref?: string | null | undefined; locations?: { inventory?: { _id: string; updatedAt: string; } | null | undefined; type: "restaurant" | "warehouse"; name: string; acceptRequest: boolean; dbName: string; doc: { _id: string; businessId: string; profile: { code?: string | null | undefined; url?: string | null | undefined; description?: string | null | undefined; _id?: string | null | undefined; legalName?: string | null | undefined; sstRegNo?: string | null | undefined; discovery?: boolean | null | undefined; coverPhoto?: string | null | undefined; thumbnailPhoto?: string | null | undefined; photos?: string[] | null | undefined; operatingHours?: { 0: { hours: { end: string; start: string; }[]; enable: boolean; }; 2: { hours: { end: string; start: string; }[]; enable: boolean; }; 1: { hours: { end: string; start: string; }[]; enable: boolean; }; 3: { hours: { end: string; start: string; }[]; enable: boolean; }; 4: { hours: { end: string; start: string; }[]; enable: boolean; }; 5: { hours: { end: string; start: string; }[]; enable: boolean; }; 6: { hours: { end: string; start: string; }[]; enable: boolean; }; } | null | undefined; tags?: string[] | null | undefined; name: string; address: { coordinates?: number[] | null | undefined; line2?: string | null | undefined; state: string; country: string; line1: string; city: string; postcode: string; }; email: string; phoneNo: string; regNo: string; }; }; }[] | null | undefined; updatedBy?: { name: string; id: string; } | null | undefined; groups?: { name: string; id: string; items: { disabledMeasurements?: string[] | null | undefined; position?: number | null | undefined; skuId: string; }[]; }[] | null | undefined; _id: string; name: string; }[]; previewItemNames: string[]; negativeStockItemCount: number; closingIdDisplay: string | null; }[]>; loading: import("vue").Ref; tableKey: import("vue").Ref; dateRange: import("vue").Ref<{ startDate: string; endDate: string; }, { startDate: string; endDate: string; } | { startDate: string; endDate: string; }>; setDateRange: (range: { startDate: string; endDate: string; }) => { startDate: string; endDate: string; }; detailToRow: (detail: FdtoClosingDraftListItemDetail & RevisionIdMeta, row: DraftWithDisplay) => Promise; refreshDraftGroups: (draftId: string) => Promise; fetchDraftsPage: (request: CursorPageRequest) => Promise; transformDrafts: (docs: (FdtoClosingDraftListItem & RevisionIdMeta)[]) => DraftWithDisplay[]; refresh: () => void; onLocationChanged: () => Promise; loadDraft: (draftId: string) => Promise; updateDraftRef: (draft: FdoClosingDraft) => Promise; }, "detailToRow" | "refresh" | "onLocationChanged" | "setDateRange" | "refreshDraftGroups" | "fetchDraftsPage" | "transformDrafts" | "loadDraft" | "updateDraftRef">>; export {};