import { CID } from "multiformats"; import { DbMetaEvent, WALState } from "./types.js"; import { Result } from "@adviser/cement"; export declare const FPEnvelopeTypes: { readonly CAR: "car"; readonly FILE: "file"; readonly META: "meta"; readonly WAL: "wal"; }; export type FPEnvelopeType = (typeof FPEnvelopeTypes)[keyof typeof FPEnvelopeTypes]; export interface FPEnvelope { readonly type: FPEnvelopeType; readonly payload: T; } export interface FPEnvelopeCar extends FPEnvelope { readonly type: typeof FPEnvelopeTypes.CAR; } export interface FPEnvelopeFile extends FPEnvelope { readonly type: typeof FPEnvelopeTypes.FILE; } export interface FPEnvelopeMeta extends FPEnvelope { readonly type: typeof FPEnvelopeTypes.META; } export interface FPWALCarsOps { readonly cars: CID[]; } export interface FPEnvelopeWAL extends FPEnvelope { readonly type: typeof FPEnvelopeTypes.WAL; } export declare function Car2FPMsg(fpcar: Uint8Array): Result; export declare function File2FPMsg(fpfile: Uint8Array): Result;