/** * Unified Token Factory — single entry point for SPL, Token2022, and pToken launches. */ import type { Connection, PublicKey } from "@solana/web3.js"; import type { TokenLaunchConfig } from "../types/index.js"; import { type SplLaunchResult } from "./spl-launcher.js"; import { type Token2022LaunchResult } from "./token2022-launcher.js"; import { type PTokenLaunchResult } from "./ptoken-launcher.js"; export type TokenLaunchResult = SplLaunchResult | Token2022LaunchResult | PTokenLaunchResult; /** * Launch a token. Dispatches to the correct builder based on config.standard. * * @param feeReserveAccount Required only for pToken — the vault fee reserve ATA */ export declare function launchToken(connection: Connection, payer: PublicKey, config: TokenLaunchConfig, feeReserveAccount?: PublicKey): Promise; /** Check if a launch result is a pToken */ export declare function isPTokenResult(result: TokenLaunchResult): result is PTokenLaunchResult; /** Check if a launch result is Token2022 (including pToken) */ export declare function isToken2022Result(result: TokenLaunchResult): result is Token2022LaunchResult | PTokenLaunchResult; /** * Default agent token config — pToken with 1% transfer fee. * Ready to use with launchToken(). */ export declare function defaultAgentTokenConfig(opts: { name: string; symbol: string; uri: string; decimals?: number; initialSupply?: bigint; mintCloseAuthority?: PublicKey; }): TokenLaunchConfig; //# sourceMappingURL=token-factory.d.ts.map