import type { ExtractStrict } from 'type-fest'; import type { EndpointFromPaths, QueryOptions } from '../types'; import type { components, paths } from './termsOfService.contract'; export type TermsOfServiceRequest = components['schemas']['TermsOfServiceDocumentRequest']; export type TermsOfServiceResponse = components['schemas']['TermsOfServiceDocumentResponse']; type TermsOfServiceEndpoints = EndpointFromPaths; export type TermsOfServiceEndpoint = ExtractStrict; export type QueryKeyTermsOfService = ['termsOfService', TermsOfServiceRequest]; export declare const getTermsOfService: (legalEntityId: string, baseUrl: string, data: TermsOfServiceRequest) => Promise<{ document?: string; id?: string; language?: string; termsOfServiceDocumentFormat?: string; termsOfServiceDocumentId?: string; type?: components["schemas"]["TermsOfServiceType"]; }>; export declare const useTermsOfService: (data: TermsOfServiceRequest, options?: QueryOptions) => import("@tanstack/preact-query").UseQueryResult<{ document?: string; id?: string; language?: string; termsOfServiceDocumentFormat?: string; termsOfServiceDocumentId?: string; type?: components["schemas"]["TermsOfServiceType"]; }, Error>; export {};