import type { MutationOptions } from '../../../types';
import type { Document, ExistingDocument } from '../../core/models/api/document';
import type { ComponentApiRequestContext } from '../../core/services/types';
export declare const updateDocument: (context: ComponentApiRequestContext, document: Document, documentId: string, ownerId: string) => Promise<ExistingDocument>;
type Payload = {
    document: Document;
    documentId: string;
    ownerId: string;
};
export declare const useUpdateDocument: (options?: Omit<MutationOptions<ExistingDocument, Error, Payload>, "mutationFn">) => import("@tanstack/preact-query").UseMutationResult<ExistingDocument, Error, Payload, unknown>;
export {};
