import type { CompiledUserFixturePlan } from "../custom/fixtures.js"; import { type FixtureProfileId, type FixtureScriptType } from "./fixture-profiles.js"; export declare const BITCOIN_CORE_VERSION = 310100; export interface RpcCaller { call(method: string, params?: Record | unknown[], wallet?: string): Promise; } export interface FixtureOutpoint { txid: string; vout: number; amountSats: number; height: number; } export type BuiltInFixtureId = "happy-path" | "bdk-finalize-regression" | FixtureProfileId; export type FixtureId = string; export interface FixtureOutputIntent { readonly descriptor: string; readonly amountSats: number; } export interface FixtureTransactionIntent { readonly version: number; readonly locktime: number; readonly sequences: readonly number[]; readonly outputCount: number; readonly outputs: readonly FixtureOutputIntent[]; } export interface PsbtFixture { id: FixtureId; initialPsbt: string; outpoints: FixtureOutpoint[]; inputCount: number; outputCount: number; feeSats: number; scriptTypes: readonly FixtureScriptType[]; inputDescriptors: readonly string[]; outputDescriptor: string; psbtVersion: 0; transactionId: string; psbtSha256: string; unsignedTxSha256: `sha256:${string}`; readonly specSha256?: `sha256:${string}`; readonly transactionIntent?: FixtureTransactionIntent; } export interface PreparedPsbtFixture extends PsbtFixture { readonly transactionIntent: FixtureTransactionIntent; } export interface PreparedFixtureSet { descriptor?: string; address?: string; core: { version: number; subversion: string; blocks: number; connections: number; }; happy?: PreparedPsbtFixture; regression?: PreparedPsbtFixture; profiles: Partial>; custom: Readonly>; } export interface PreparedFixtures extends PreparedFixtureSet { descriptor: string; address: string; happy: PreparedPsbtFixture; regression: PreparedPsbtFixture; profiles: Record; } export declare function btcToSats(value: string | number): number; export declare function satsToBtcString(sats: number): string; export declare function prepareFixtures(rpc: RpcCaller, customPlans?: readonly CompiledUserFixturePlan[]): Promise; export declare function prepareFixtures(rpc: RpcCaller, customPlans: readonly CompiledUserFixturePlan[], requiredFixtureIds: readonly BuiltInFixtureId[]): Promise; //# sourceMappingURL=fixtures.d.ts.map