import type { RevisionIdMeta } from '@feedmepos/inventory-core'; export interface RecentPublish { recentJob?: PublishingJob | null; publishedRevs?: FdoClosingTemplatePublish['publishedRev'] | null; } export interface PublishingJob { id: string; businessId: string; outlets: string[]; completed: string[]; createdAt: string; updatedAt: string; } export declare const useClosingTemplateApi: () => { getRecentPublishingJob(): Promise; startNewPublish(): Promise; getRecentPublishInfo(): Promise; publishSingleDoc(_id: string, locationDbNames?: string[] | null): Promise; unpublishSingleDoc(_id: string, locationDbNames?: string[] | null): Promise; getTemplate(id: string, signal?: AbortSignal): Promise; readTemplates(): Promise<(FdoClosingTemplate & RevisionIdMeta)[]>; /** Single page of the trimmed listing endpoint (cursor-based). */ listTemplatesPage(body: { limit: number; startkey?: string; }): Promise; /** Cursor-walks the trimmed listing endpoint, fetching every page so * callers keep the "load everything up front" table UX while the * network payload stays small per page. */ listTemplates(): Promise<(FdtoClosingTemplateListItem & RevisionIdMeta)[]>; createTemplate(template: Omit): Promise; updateTemplate(template: FdoClosingTemplate & RevisionIdMeta): Promise; deleteTemplate(template: Pick): Promise; importTemplates(templates: Array<(FdoClosingTemplate & RevisionIdMeta) | Omit>): Promise; getAuditTrails(templateId: string): Promise; };