import type { QueryOptions } from '../types';
import type { components } from './termsOfService.contract';
export type Request = components['schemas']['TermsOfServiceDocumentRequest'];
export type SuccessResponse = components['schemas']['TermsOfServiceDocumentResponse'];
export declare const getTermsOfService: (legalEntityId: string, url: string, data: Request) => Promise<SuccessResponse>;
export declare const useTermsOfService: (data: Request, options?: QueryOptions<SuccessResponse>) => import("@tanstack/react-query").UseQueryResult<{
    document?: string;
    id?: string;
    language?: string;
    termsOfServiceDocumentFormat?: string;
    termsOfServiceDocumentId?: string;
    type?: components["schemas"]["TermsOfServiceType"];
}, Error>;
