import type { Db } from "@rudderhq/db";
export declare function documentService(db: Db): {
    listLibraryDocuments: (orgId: string) => Promise<{
        issueLinks: {
            issueId: string;
            issueIdentifier: string | null;
            issueTitle: string;
            key: string;
        }[];
        latestRevisionId: string | null;
        latestRevisionNumber: number;
        createdByAgentId: string | null;
        createdByUserId: string | null;
        updatedByAgentId: string | null;
        updatedByUserId: string | null;
        createdAt: Date;
        updatedAt: Date;
        body?: string | undefined;
        id: string;
        orgId: string;
        title: string | null;
        format: string;
    }[]>;
    createLibraryDocument: (input: {
        orgId: string;
        title?: string | null;
        format: string;
        body: string;
        changeSummary?: string | null;
        createdByAgentId?: string | null;
        createdByUserId?: string | null;
    }) => Promise<{
        issueLinks: never[];
        latestRevisionId: string | null;
        latestRevisionNumber: number;
        createdByAgentId: string | null;
        createdByUserId: string | null;
        updatedByAgentId: string | null;
        updatedByUserId: string | null;
        createdAt: Date;
        updatedAt: Date;
        body?: string | undefined;
        id: string;
        orgId: string;
        title: string | null;
        format: string;
    }>;
    getLibraryDocumentById: (orgId: string, documentId: string) => Promise<{
        issueLinks: {
            issueId: string;
            issueIdentifier: string | null;
            issueTitle: string;
            key: string;
        }[];
        latestRevisionId: string | null;
        latestRevisionNumber: number;
        createdByAgentId: string | null;
        createdByUserId: string | null;
        updatedByAgentId: string | null;
        updatedByUserId: string | null;
        createdAt: Date;
        updatedAt: Date;
        body?: string | undefined;
        id: string;
        orgId: string;
        title: string | null;
        format: string;
    } | null>;
    updateLibraryDocument: (input: {
        orgId: string;
        documentId: string;
        title?: string | null;
        format: string;
        body: string;
        changeSummary?: string | null;
        baseRevisionId?: string | null;
        createdByAgentId?: string | null;
        createdByUserId?: string | null;
    }) => Promise<{
        issueLinks: never[];
        latestRevisionId: string | null;
        latestRevisionNumber: number;
        createdByAgentId: string | null;
        createdByUserId: string | null;
        updatedByAgentId: string | null;
        updatedByUserId: string | null;
        createdAt: Date;
        updatedAt: Date;
        body?: string | undefined;
        id: string;
        orgId: string;
        title: string | null;
        format: string;
    } | null>;
    listLibraryDocumentRevisions: (orgId: string, documentId: string) => Promise<{
        id: string;
        orgId: string;
        documentId: string;
        revisionNumber: number;
        body: string;
        changeSummary: string | null;
        createdByAgentId: string | null;
        createdByUserId: string | null;
        createdAt: Date;
    }[]>;
    restoreLibraryDocumentRevision: (input: {
        orgId: string;
        documentId: string;
        revisionId: string;
        changeSummary?: string | null;
        createdByAgentId?: string | null;
        createdByUserId?: string | null;
    }) => Promise<{
        issueLinks: never[];
        latestRevisionId: string | null;
        latestRevisionNumber: number;
        createdByAgentId: string | null;
        createdByUserId: string | null;
        updatedByAgentId: string | null;
        updatedByUserId: string | null;
        createdAt: Date;
        updatedAt: Date;
        body?: string | undefined;
        id: string;
        orgId: string;
        title: string | null;
        format: string;
    } | null>;
};
//# sourceMappingURL=documents.d.ts.map