import { type JSONRecord, type JSONScalar } from '@redneckz/json-op'; import { type EndpointType } from '../components/ApplicationForm/ApplicationFormContent'; import { type Router } from '../external/useRouter'; export declare type LeadRequest = Record & { typeForm?: string; addressBranch?: string; phone?: string; email?: string; inn?: string; innDadata?: string; fullRegion?: string; secondaryPhoneNumber?: string; partnerSymbolCode?: string; partnerName?: string; consentDataProcessing?: string; russianPhone?: string; }; export declare type CheckCodeProps = { reqId: string; code: string; body: LeadRequest; router: Router; endpoint?: EndpointType; }; declare type CheckCodeResponse = { errorCode?: string; errorDesc?: string; reqId?: string; status?: string; } | null; declare type VerifiedLeadRequest = { requestId: string; confirmationCode: string; leadRequest: LeadRequest; }; declare type PhoneOnly = { phone?: string; }; export declare type sendProps = { body: LeadRequest; router: Router; endpoint?: EndpointType; }; declare type SubmitBody = PhoneOnly | LeadRequest | CheckCodeProps | VerifiedLeadRequest; export declare function LeadServiceAPI(): { send: ({ body, router, endpoint }: sendProps) => Promise; sendCode: ({ phone }: PhoneOnly) => Promise; checkCode: ({ reqId, code, body, router, endpoint, }: CheckCodeProps) => Promise; sendPhoneCallRequest: (body: LeadRequest, endpoint?: EndpointType) => Promise; }; export declare const LeadServiceFetch: (url: string, submitBody: SubmitBody) => Promise; export {};