import type { TermsOfServiceDocumentFormat } from '../../core/models/api/contracts';
import type { QueryOptions } from '../types';
import type { components } from './termsOfService.contract';
export type SuccessResponse = components['schemas']['GetAcceptedTermsOfServiceDocumentResponse'];
export declare const getAcceptedTermsOfService: (legalEntityId: string, url: string, termsOfServiceAcceptanceReference: string, documentFormat: TermsOfServiceDocumentFormat) => Promise<SuccessResponse>;
export declare const useAcceptedTermsOfService: (termsOfServiceAcceptanceReference: string | undefined, documentFormat: TermsOfServiceDocumentFormat, options?: QueryOptions<SuccessResponse>) => import("@tanstack/react-query").UseQueryResult<{
    document?: string;
    id?: string;
    termsOfServiceAcceptanceReference?: string;
    termsOfServiceDocumentFormat?: "JSON" | "PDF";
}, Error>;
