UNPKG

@adyen/kyc-components

Version:

This guide assumes that you have already an account with Adyen. A legalEntity needs to be created, and you need to have a `legalEntityId` to instatiate a Component.

6 lines (5 loc) 572 B
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>;