import { Beef } from '@bsv/sdk'; import { TableProvenTxReq } from './schema/tables/TableProvenTxReq'; import { TrxToken } from '../sdk/WalletStorage.interfaces'; import { GetReqsAndBeefDetail } from './methods/processAction'; import { ReqHistoryNote } from '../sdk/types'; /** * Classify a ProvenTxReq status into beef-sharing lifecycle status. * Mutates `d` in place. */ export declare function classifyReqStatus(d: GetReqsAndBeefDetail, req: TableProvenTxReq): void; /** * For each input of `rawTx`, ensure the source txid is represented in `beef`. * * When `requiredLevels` is undefined/0 and `knownTxids` contains the source txid, * a txid-only stub is merged rather than recursing into storage. */ export declare function mergeInputBeefs(rawTx: number[], beef: Beef, trustSelf: 'known' | undefined, knownTxids: string[] | undefined, trx: TrxToken | undefined, requiredLevels: number | undefined, getValidBeef: (txid: string, beef: Beef, trustSelf: 'known' | undefined, knownTxids: string[] | undefined, trx: TrxToken | undefined, requiredLevels: number | undefined) => Promise): Promise; /** * Convenience wrapper for the external-sharing path where `trustSelf` and * `requiredLevels` are always absent. */ export declare function mergeInputsIntoBeef(rawTx: number[], beef: Beef, knownTxids: string[], trx: TrxToken | undefined, getValidBeef: (txid: string, beef: Beef, trustSelf: undefined, knownTxids: string[], trx: TrxToken | undefined) => Promise): Promise; /** * Notify each transaction that a proof has been found. * Mutates `req` history notes in place. * * The `addNote` and `flushNotes` callbacks avoid coupling this helper to a * specific entity type. */ export declare function notifyTransactionsOfProof(ids: number[], provenTxId: number, addNote: (note: ReqHistoryNote) => void, flushNotes: () => Promise, updateTransaction: (id: number, update: { provenTxId: number; status: 'completed'; }) => Promise): Promise; //# sourceMappingURL=storageProviderHelpers.d.ts.map