import { DeployArgs, PublicKey, State, UInt64, SmartContract, Bool, Field } from "o1js"; import { Whitelist } from "@silvana-one/storage"; export interface FungibleTokenOfferContractDeployProps extends Exclude { /** The whitelist. */ whitelist: Whitelist; } declare const OfferEvent_base: (new (value: { amount: UInt64; address: PublicKey; }) => { amount: UInt64; address: PublicKey; }) & { _isStruct: true; } & Omit, "fromFields"> & { fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[]) => { amount: UInt64; address: PublicKey; }; } & { fromValue: (value: { amount: number | bigint | UInt64; address: PublicKey | { x: Field | bigint; isOdd: Bool | boolean; }; }) => { amount: UInt64; address: PublicKey; }; toInput: (x: { amount: UInt64; address: PublicKey; }) => { fields?: Field[] | undefined; packed?: [Field, number][] | undefined; }; toJSON: (x: { amount: UInt64; address: PublicKey; }) => { amount: string; address: string; }; fromJSON: (x: { amount: string; address: string; }) => { amount: UInt64; address: PublicKey; }; empty: () => { amount: UInt64; address: PublicKey; }; }; export declare class OfferEvent extends OfferEvent_base { } export declare class FungibleTokenOfferContract extends SmartContract { price: State; seller: State; token: State; whitelist: State; deploy(args: FungibleTokenOfferContractDeployProps): Promise; events: { offer: typeof OfferEvent; withdraw: typeof OfferEvent; buy: typeof OfferEvent; updateWhitelist: typeof Whitelist; }; initialize(seller: PublicKey, // we are short of AccountUpdates here, so we use this parameter instead of this.sender.getUnconstrained() token: PublicKey, amount: UInt64, price: UInt64): Promise; offer(amount: UInt64, price: UInt64): Promise; withdraw(amount: UInt64): Promise; buy(amount: UInt64): Promise; updateWhitelist(whitelist: Whitelist): Promise; } export {};