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