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.

70 lines (69 loc) 7.17 kB
import type { ComponentType } from 'preact'; import { type Parser } from 'wouter-preact'; import { type TaskType } from '../stores/globalStore/taskTypes'; import { type GetDefaultTaskParams } from './getDefaultTask'; export declare const Introduction: typeof import("../components/Shared/Introduction/Introduction").Introduction; export declare const BusinessTypeSelectionPage: ({ onComplete, onBack, }: Pick<import("../components/Shared/forms/BusinessTypeSelection/types").BusinessTypeSelectionProps, "onComplete" | "onBack">) => import("preact/jsx-runtime").JSX.Element; export declare const SingpassSelection: (props: import("../components/Shared/SingpassSelection/types").SetUpAccountMethodProps) => import("preact/jsx-runtime").JSX.Element; export declare const AccountSetupRejected: typeof import("../components/Shared/AccountSetupRejected/AccountSetupRejected").AccountSetupRejected; export declare const DecisionMakers: (props: import("../components/Individual/tasks/DecisionMakers/types").DecisionMakersProps) => import("preact/jsx-runtime").JSX.Element; export declare const CustomerSupport: (props: import("../components/Shared/tasks/CustomerSupport/types").CustomerSupportProps) => import("preact/jsx-runtime").JSX.Element; export declare const Review: typeof import("../components/Shared/tasks/Review/Review").Review; export declare const SignPCIComponent: typeof import("../components/EmbeddedDropins/SignPCIComponent/SignPCIComponent").SignPCIComponent; export declare const AcceptTermsOfService: typeof import("../components/EmbeddedDropins/AcceptTermsOfServiceComponent/AcceptTermsOfServiceComponent").AcceptTermsOfServiceComponent; export declare const TaxReportingDropin: typeof import("../components/EFP/tasks/TaxReportingDropin/TaxReportingDropin").TaxReportingDropin; export declare const PayoutDetailsPage: typeof import("../components/BankAccount/pages/PayoutDetailsPage").PayoutDetailsPage; export declare const RootBusinessDetailsPage: ({ onSubmit, handleHomeClick, }: import("../components/Business/pages/RootBusinessDetailsPage").RootBusinessDetailsPageProps) => import("preact/jsx-runtime").JSX.Element; export declare const RootBusinessLinesPage: ({ handleHomeClick }: import("../components/BusinessLines/pages/RootBusinessLinesPage").RootBusinessLinesPageProps) => import("preact/jsx-runtime").JSX.Element; export declare const SoleProprietorshipPage: typeof import("../components/SoleProprietorship/pages/SoleProprietorshipPage").SoleProprietorshipPage; export declare const TrustMemberCompanyPage: typeof import("../components/Trust/pages/TrustMemberCompanyPage").TrustMemberCompanyPage; export declare const TrustMemberIndividualPage: typeof import("../components/Trust/pages/TrustMemberIndividualPage").TrustMemberIndividualPage; export declare const TrustMemberRoleAndTypePage: typeof import("../components/Trust/pages/TrustMemberRoleAndTypePage").TrustMemberRoleAndTypePage; export declare const TrustMembersOverview: ({ navigateBackToTaskList, navigateToEditTrustMember, navigateToEditTrustMemberOwner, }: import("../components/Trust/tasks/TrustMembers/TrustMembersOverview").TrustMembersOverviewProps) => import("preact/jsx-runtime").JSX.Element; export declare const UnincorporatedPartnershipMemberCompanyPage: typeof import("../components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberCompanyPage").UnincorporatedPartnershipMemberCompanyPage; export declare const UnincorporatedPartnershipIndividualPage: typeof import("../components/UnincorporatedPartnership/pages/UnincorporatedPartnershipIndividualPage").UnincorporatedPartnershipIndividualPage; export declare const UnincorporatedPartnershipMemberRoleAndTypePage: typeof import("../components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberRoleAndTypePage").UnincorporatedPartnershipMemberRoleAndTypePage; export declare const UnincorporatedPartnershipMembersOverview: ({ navigateBackToTaskList, navigateToEditMember, navigateToEditMemberOwner, }: import("../components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipMembers/UnincorporatedPartnershipMembersOverview").UnincorporatedPartnershipMembersOverviewProps) => import("preact/jsx-runtime").JSX.Element; export declare const BusinessFinancingPage: ({ onSubmit, handleHomeClick, }: import("../components/EFP/pages/BusinessFinancingPage").BusinessFinancingPageProps) => import("preact/jsx-runtime").JSX.Element; export declare const TrustDetailsPage: ({ taskType, trustId, handleHomeClick, onSubmit, }: import("../components/Trust/pages/TrustDetailsPage").TrustDetailsPageProps) => import("preact/jsx-runtime").JSX.Element; export declare const SourceOfFundsPage: ({ onSubmit, handleHomeClick }: import("../components/EFP/pages/SourceOfFundsPage").SourceOfFundsPageProps) => import("preact/jsx-runtime").JSX.Element; export declare const RootIndividualDetailsPage: typeof import("../components/Individual/pages/RootIndividualDetailsPage").RootIndividualDetailsPage; export declare const LegalRepresentativeDetailsPage: typeof import("../components/Individual/pages/LegalRepresentativeDetailsPage").LegalRepresentativeDetailsPage; export declare const DecisionMakerDetailsPage: typeof import("../components/Individual/pages/DecisionMakerDetailsPage").DecisionMakerDetailsPage; export declare const InvitedDecisionMakerComponent: typeof import("../components/EmbeddedDropins/InvitedDecisionMakerComponent/InvitedDecisionMakerComponent").InvitedDecisionMakerComponent; interface RouteEntry { path: string; Component?: ComponentType<any>; } export declare const ROUTE_CONFIG: Record<TaskType, RouteEntry>; /** * Maps each TaskType to its URL path pattern. * Derived from ROUTE_CONFIG — do not edit directly. */ export declare const ROUTE_PATHS: Record<TaskType, string>; /** * Build a concrete URL path from a TaskType and optional params. * Replaces `:paramName` placeholders with actual values. * Optional params (`:paramName?`) are omitted if not provided. */ export declare const buildPath: (task: TaskType, params?: Record<string, string>) => string; /** * Get the default route path based on settings and legal entity state. */ export declare const getDefaultRoute: (context: GetDefaultTaskParams) => string; /** * Detect the base path by stripping any known route suffix from the current * `window.location.pathname`. This lets deep-links and reloads work correctly * because the base is the host-page mount point, not the full URL. * * Examples (playground): * `/onboardingDropinComponent` → base `/onboardingDropinComponent` * `/onboardingDropinComponent/individual` → base `/onboardingDropinComponent` * * Examples (production — /balanceplatform/uo/form/{legalEntityId}/{sessionToken}): * `/balanceplatform/uo/form/xtl-LE123/TOKEN` → base `/balanceplatform/uo/form/xtl-LE123/TOKEN` * `/balanceplatform/uo/form/xtl-LE123/TOKEN/individual` → base `/balanceplatform/uo/form/xtl-LE123/TOKEN` * `/balanceplatform/uo/form/xtl-LE123/TOKEN/tasks` → base `/balanceplatform/uo/form/xtl-LE123/TOKEN` */ export declare const detectBasePath: (parser: Parser, pathname?: string) => string; export {};