declare module "arc200js" { type ContractEvent = [ string, // Transaction ID number, // Round number // Timestamp ]; type TransferEvent = [ ...ContractEvent, string, // From string, // To bigint // Amount ]; type ApprovalEvent = [ ...ContractEvent, string, // Owner string, // Spender bigint // Amount ]; class Contract { constructor( contractId: number, algodClient: algosdk.Algodv2, indexerClient: algosdk.Indexer, opts?: { acc?: { addr: string; sk: Uint8Array }; simulate?: boolean; formatBytes?: boolean; waitForConfirmation?: boolean; } ); arc200_name(): Promise< { success: true; returnValue: string } | { success: false; error: any } >; arc200_symbol(): Promise< { success: true; returnValue: string } | { success: false; error: any } >; arc200_totalSupply(): Promise< { success: true; returnValue: bigint } | { success: false; error: any } >; arc200_decimals(): Promise< { success: true; returnValue: bigint } | { success: false; error: any } >; arc200_balanceOf( addr: string ): Promise< { success: true; returnValue: bigint } | { success: false; error: any } >; arc200_allowance( addrFrom: string, addrSpender: string ): Promise< { success: true; returnValue: bigint } | { success: false; error: any } >; arc200_transfer( addrTo: string, amt: bigint, simulate: T, waitForConfirmation: boolean ): Promise< | (T extends true ? { success: true; txns: string[] } : { success: true; txId: string }) | { success: false; error: any } >; arc200_transferFrom( addrFrom: string, addrTo: string, amt: bigint, simulate: T, waitForConfirmation: boolean ): Promise< | (T extends true ? { success: true; txns: string[] } : { success: true; txId: string }) | { success: false; error: any } >; arc200_approve( addrSpender: string, amt: bigint, simulate: T, waitForConfirmation: boolean ): Promise< | (T extends true ? { success: true; txns: string[] } : { success: true; txId: string }) | { success: false; error: any } >; arc200_Transfer(query?: { minRound?: number; maxRound?: number; address?: string; round?: number; txid?: string; }): Promise; arc200_Approval(query?: { minRound?: number; maxRound?: number; address?: string; round?: number; txid?: string; }): Promise; getEvents(query: { minRound?: number; maxRound?: number; address?: string; round?: number; txid?: string; }): Promise< [ { name: "arc200_Transfer"; signature: string; selector: string; events: TransferEvent[]; }, { name: "arc200_Approval"; signature: string; selector: string; events: ApprovalEvent[]; } ] >; hasBalance( addr: string ): Promise< { success: true; returnValue: 0 | 1 } | { success: false; error: any } >; hasAllowance( addrFrom: string, addrSpender: string ): Promise< { success: true; returnValue: 0 | 1 } | { success: false; error: any } >; getMetadata(): Promise< | { success: true; returnValue: { name: string; symbol: string; totalSupply: bigint; decimals: bigint; }; } | { success: false; error: any; } >; } export function arc200_name( contractInstance: Contract ): Promise< { success: true; returnValue: string } | { success: false; error: any } >; export function arc200_symbol( contractInstance: Contract ): Promise< { success: true; returnValue: string } | { success: false; error: any } >; export function arc200_totalSupply( contractInstance: Contract ): Promise< { success: true; returnValue: bigint } | { success: false; error: any } >; export function arc200_decimals( contractInstance: Contract ): Promise< { success: true; returnValue: bigint } | { success: false; error: any } >; export function arc200_balanceOf( contractInstance: Contract, addr: string ): Promise< { success: true; returnValue: bigint } | { success: false; error: any } >; export function arc200_allowance( contractInstance: Contract, addrFrom: string, addrSpender: string ): Promise< { success: true; returnValue: bigint } | { success: false; error: any } >; export function hasBalance( contractInstance: Contract, addr: string ): Promise< { success: true; returnValue: 0 | 1 } | { success: false; error: any } >; export function hasAllowance( contractInstance: Contract, addrFrom: string, addrSpender: string ): Promise< { success: true; returnValue: 0 | 1 } | { success: false; error: any } >; export function safe_arc200_transfer( ci: Contract, addrTo: string, amt: bigint, simulate: T, waitForConfirmation: boolean ): Promise< | (T extends true ? { success: true; txns: string[] } : { success: true; txId: string }) | { success: false; error: any } >; export function safe_arc200_transferFrom( ci: Contract, addrFrom: string, addrTo: string, amt: bigint, simulate: T, waitForConfirmation: boolean ): Promise< | (T extends true ? { success: true; txns: string[] } : { success: true; txId: string }) | { success: false; error: any } >; export function safe_arc200_approve( ci: Contract, addrSpender: string, amt: bigint, simulate: T, waitForConfirmation: boolean ): Promise< | (T extends true ? { success: true; txns: string[] } : { success: true; txId: string }) | { success: false; error: any } >; export default Contract; } declare module "hsv2js" { export default { ann: any, netTok: any, } }