import { APIResource } from "../../resource.js"; import * as Core from "../../core.js"; import * as PlaidAPI from "./plaid.js"; export declare class Plaid extends APIResource { /** * Exchange token (Plaid) */ exchange(body: PlaidExchangeParams, options?: Core.RequestOptions): Core.APIPromise; /** * Auth Link (Plaid) */ link(body?: PlaidLinkParams, options?: Core.RequestOptions): Core.APIPromise; link(options?: Core.RequestOptions): Core.APIPromise; } export interface PlaidExchangeSchema { data: PlaidExchangeSchema.Data; } export declare namespace PlaidExchangeSchema { interface Data { access_token: string; } } export interface PlaidLinkSchema { data: PlaidLinkSchema.Data; } export declare namespace PlaidLinkSchema { interface Data { expiration: string; link_token: string; } } export interface PlaidExchangeParams { token: string; } export interface PlaidLinkParams { /** * Used when initiating the reconnect flow */ accessToken?: string; language?: string; userId?: string; } export declare namespace Plaid { export import PlaidExchangeSchema = PlaidAPI.PlaidExchangeSchema; export import PlaidLinkSchema = PlaidAPI.PlaidLinkSchema; export import PlaidExchangeParams = PlaidAPI.PlaidExchangeParams; export import PlaidLinkParams = PlaidAPI.PlaidLinkParams; } //# sourceMappingURL=plaid.d.ts.map