import { EventEmitter } from 'events'; import * as viem from 'viem'; import { CannonSigner, ChainArtifacts } from './types'; import { CannonLoader } from './loader'; import { CannonRegistry } from './registry'; import { ChainBuilderRuntimeInfo, ChainBuilderContext, ContractArtifact, DeploymentInfo } from './types'; export declare enum Events { PreStepExecute = "pre-step-execute",// step name, PostStepExecute = "post-step-execute",// step name, DeployContract = "deploy-contract", DeployTxn = "deploy-txn", DeployExtra = "deploy-extra", SkipDeploy = "skip-deploy",// step name, error causing skip ResolveDeploy = "resolve-deploy", DownloadDeploy = "download-deploy", Notice = "notice" } export declare class CannonStorage extends EventEmitter { readonly registry: CannonRegistry; readonly defaultLoaderScheme: string; readonly loaders: { [scheme: string]: CannonLoader; }; constructor(registry: CannonRegistry, loaders: { [scheme: string]: CannonLoader; }, defaultLoaderScheme?: string); lookupLoader(url: string): CannonLoader; getLabel(): string; readBlob(url: string): Promise; putBlob(data: any): Promise; deleteBlob(url: string): Promise | undefined; readDeploy(packageRef: string, chainId: number): Promise; putDeploy(deployInfo: DeploymentInfo): Promise; } export declare class ChainBuilderRuntime extends CannonStorage implements ChainBuilderRuntimeInfo { provider: viem.PublicClient; readonly chainId: number; readonly getSigner: (addr: viem.Address) => Promise; readonly getDefaultSigner: (txn: Omit, salt?: string) => Promise; readonly getArtifact: (name: string) => Promise; readonly snapshots: boolean; readonly allowPartialDeploy: boolean; readonly subpkgDepth: number; currentStep: string | null; ctx: ChainBuilderContext | null; private publicSourceCode; private signals; private _gasPrice; private _gasFee; private _priorityGasFee; private cleanSnapshot; private loadedMisc; private traceArtifacts; misc: { artifacts: { [label: string]: any; }; }; constructor(info: Omit, registry: CannonRegistry, loaders?: { [scheme: string]: CannonLoader; }, defaultLoaderScheme?: string, subpkgDepth?: number); cancel(): void; get gasPrice(): bigint | undefined; get gasFee(): bigint | undefined; get priorityGasFee(): bigint | undefined; isCancelled(): boolean; checkNetwork(): Promise; loadState(stateDump: viem.Hex): Promise; dumpState(): Promise<`0x${string}` | null>; clearNode(): Promise; recordMisc(): Promise; restoreMisc(url: string): Promise; reportContractArtifact(n: string, artifact: ContractArtifact): void; reportOperatingContext(n: string | null, ctx: ChainBuilderContext | null): void; updateProviderArtifacts(artifacts: ChainArtifacts): void; setPublicSourceCode(isPublic: boolean): void; derive(overrides: Partial): ChainBuilderRuntime; } //# sourceMappingURL=runtime.d.ts.map