@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.
11 lines (10 loc) • 584 B
TypeScript
import type { ExistingDocument } from '../../core/models/api/document';
import type { ComponentApiRequestContext } from '../../core/services/types';
import type { QueryOptions } from '../types';
/**
* Variables:
* * `documentId`
*/
export type QueryKeyDocument = ['document', string];
export declare const getDocument: (context: ComponentApiRequestContext, documentId: string) => Promise<ExistingDocument>;
export declare const useDocument: (documentId: string, options?: QueryOptions<ExistingDocument>) => import("@tanstack/preact-query").UseQueryResult<ExistingDocument, Error>;