import type { Hash } from '@ariestools/sdk';
import type { ReadArchivist } from '@xyo-network/sdk';
import type { BlockContextRead, ChainContextRead, ChainId, FinalizationViewer, SignedBlockBoundWitnessWithHashMeta, SignedHydratedBlockWithHashMeta, SignedHydratedBlockWithStorageMeta, XL1BlockNumber } from '@xyo-network/xl1-protocol/protocol-lib';
import type { ArchivistConnectionBinding } from '../../Archivists/index.js';
import type { CreatableProviderParams } from '../../CreatableProvider/index.js';
import { AbstractCreatableProvider } from '../../CreatableProvider/index.js';
import type { ChainStoreRead } from '../../model/index.js';
import { HydratedCache } from '../../utils/index.js';
/** Parameters for SimpleFinalizationViewer. */
export interface SimpleFinalizationViewerParams extends CreatableProviderParams {
    /** Connection the chain store self-provisions from when finalizedArchivist is not injected. */
    connection?: ArchivistConnectionBinding;
    finalizedArchivist?: ReadArchivist;
}
/** SimpleFinalizationViewer implementation. */
export declare class SimpleFinalizationViewer extends AbstractCreatableProvider<SimpleFinalizationViewerParams> implements FinalizationViewer {
    static readonly connectionTypes: readonly ["lmdb", "mongo", "memory"];
    static readonly defaultMoniker: "FinalizationViewer";
    static readonly dependencies: never[];
    static readonly monikers: "FinalizationViewer"[];
    static readonly surface: "node";
    moniker: "FinalizationViewer";
    protected _chainId: ChainId;
    protected _store: ChainStoreRead | undefined;
    private _signedHydratedBlockCache;
    protected get finalizedArchivist(): ReadArchivist;
    protected get hydratedBlockCache(): HydratedCache<SignedHydratedBlockWithStorageMeta>;
    protected get store(): ChainStoreRead;
    static paramsHandler(params: Partial<SimpleFinalizationViewerParams>): Promise<{
        finalizedArchivist: ReadArchivist<import("@xyo-network/sdk").Payload, import("@ariestools/sdk").BrandedHash, import("@xyo-network/sdk").Sequence>;
        context: import('../../model/CreatableProviderContext.zod.js').CreatableProviderContextType;
        name?: import("@ariestools/sdk").CreatableName;
        statusReporter?: import("@ariestools/sdk").CreatableStatusReporter<void> | undefined;
        logger?: import("@ariestools/sdk").Logger;
        meterProvider?: import("@opentelemetry/api").MeterProvider;
        traceProvider?: import("@opentelemetry/api").TracerProvider;
    }>;
    chainId(): import("@ariestools/sdk").BrandedHex;
    createHandler(): Promise<void>;
    head(): Promise<SignedHydratedBlockWithHashMeta>;
    headBlock(): Promise<SignedBlockBoundWitnessWithHashMeta>;
    headHash(): Promise<Hash>;
    headNumber(): Promise<XL1BlockNumber>;
    protected getBlockContextRead(): BlockContextRead;
    protected getChainContextRead(): Promise<ChainContextRead>;
    protected getCurrentHead(): Promise<{
        schema: "network.xyo.boundwitness" & {
            readonly __schema: true;
        };
        addresses: (import("@xyo-network/sdk").XyoQuantAddress | (Lowercase<string> & {
            readonly __hex: true;
        } & {
            readonly __address: true;
        }))[];
        payload_hashes: import("@ariestools/sdk").BrandedHash[];
        payload_schemas: import("@xyo-network/sdk").BrandedSchema<string>[];
        previous_hashes: (import("@ariestools/sdk").BrandedHash | null)[];
        $signatures: import("@ariestools/sdk").BrandedHex[];
        block: XL1BlockNumber;
        chain: import("@ariestools/sdk").BrandedHex;
        previous: import("@ariestools/sdk").BrandedHash | null;
        $epoch: number;
        _hash: import("@ariestools/sdk").BrandedHash;
        _dataHash: import("@ariestools/sdk").BrandedHash;
        $destination?: import("@xyo-network/sdk").XyoQuantAddress | (Lowercase<string> & {
            readonly __hex: true;
        } & {
            readonly __address: true;
        }) | undefined;
        $sourceQuery?: import("@ariestools/sdk").BrandedHash | undefined;
        protocol?: number | undefined;
        step_hashes?: import("@ariestools/sdk").BrandedHash[] | undefined;
    }>;
}
//# sourceMappingURL=SimpleFinalizationViewer.d.ts.map