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<RecentPublish>;
    startNewPublish(): Promise<PublishingJob>;
    getRecentPublishInfo(): Promise<FdoClosingTemplatePublish>;
    publishSingleDoc(_id: string, locationDbNames?: string[] | null): Promise<FdoClosingTemplatePublish>;
    unpublishSingleDoc(_id: string, locationDbNames?: string[] | null): Promise<FdoClosingTemplatePublish>;
    getTemplate(id: string): Promise<FdoClosingTemplate & RevisionIdMeta>;
    readTemplates(): Promise<(FdoClosingTemplate & RevisionIdMeta)[]>;
    createTemplate(template: Omit<FdoClosingTemplate, '_id'>): Promise<FdoClosingTemplate>;
    updateTemplate(template: FdoClosingTemplate & RevisionIdMeta): Promise<FdoClosingTemplate>;
    deleteTemplate(template: FdoClosingTemplate & RevisionIdMeta): Promise<any>;
    importTemplates(templates: Array<(FdoClosingTemplate & RevisionIdMeta) | Omit<FdoClosingTemplate, '_id'>>): Promise<any>;
    getAuditTrails(templateId: string): Promise<FdoInventorySystemTrail[]>;
};
