import { Artifact } from "@cashscript/utils";
import { NetworkProvider, Network } from "cashscript";
import { contractMap } from "../contract/constant.js";
import { PsiNetworkProvider } from "@unspent/psi";
declare type ContractType = typeof contractMap[keyof typeof contractMap];
export declare function parseOpReturn(serialized: string | Uint8Array, network?: Network): {
    code: string;
    options: {
        version: number;
        network: string;
    };
    args: Uint8Array[];
    lockingBytecode: Uint8Array;
    address: string;
    name: string;
    opReturn: Uint8Array;
};
export declare function parseOutputs(serialized: string | Uint8Array): Uint8Array[];
export declare function opReturnToInstance(serialized: string | Uint8Array, network?: string): InstanceType<ContractType> | undefined;
export declare function opReturnToExecutorAllowance(serialized: string | Uint8Array, network?: string): bigint;
export declare function opReturnToSpendableBalance(serialized: string | Uint8Array, network?: Network, networkProvider?: NetworkProvider, blockHeight?: number): Promise<bigint>;
export declare function opReturnToBalance(serialized: string | Uint8Array, network?: "mainnet", networkProvider?: PsiNetworkProvider, blockHeight?: number): Promise<bigint>;
export declare function opReturnToSerializedString(serialized: string | Uint8Array, network?: string): string | undefined;
export declare function stringToInstance(serialized: string, network: string): InstanceType<ContractType> | undefined;
export declare function castConstructorParametersFromArtifact(parameters: string[], artifact: Artifact): void;
export {};
//# sourceMappingURL=map.d.ts.map