import type { ClientTransport } from './client.js'; import type { Account, Capability, CreateAccountParams, Document, DocumentUpload, ListAccountsParams, OnboardingLink, Page, Requirement, RequestOpts, UpdateAccountParams } from './types.js'; /** * Set of adapters the Hub (or any in-process caller) must provide so * the InternalTransport can actually do work. Everything is async and * shaped like the public SDK so the tagadapay-app implementation in * Phase C can re-use these same adapters. * * Phase A ships only `accounts.*` live; the rest are stubs that throw * NotImplementedError (as promised in the plan ยง3.A4). */ export interface InternalAdapters { accounts: { create(payload: CreateAccountParams, opts?: RequestOpts): Promise; retrieve(id: string): Promise; update?(id: string, patch: UpdateAccountParams): Promise; list?(params: ListAccountsParams): Promise>; uploadDocument?(id: string, doc: DocumentUpload): Promise; listRequirements?(id: string): Promise; createOnboardingLink?(id: string): Promise; listCapabilities?(id: string): Promise; }; } /** * Factory for the InternalTransport. Called once at Hub boot with the * set of local services wired to their real implementations. */ export declare function createInternalTransport(adapters: InternalAdapters): ClientTransport; //# sourceMappingURL=internalTransport.d.ts.map