Initial commit

This commit is contained in:
2025-12-07 14:32:46 +00:00
commit 0a0969b8af
4726 changed files with 536089 additions and 0 deletions

24
node_modules/mqtt/build/lib/store.d.ts generated vendored Executable file
View File

@@ -0,0 +1,24 @@
import { Readable } from 'readable-stream';
import { type Packet } from 'mqtt-packet';
import { type DoneCallback } from './shared';
export interface IStoreOptions {
clean?: boolean;
}
export type PacketCallback = (error?: Error, packet?: Packet) => void;
export interface IStore {
put(packet: Packet, cb: DoneCallback): IStore;
createStream(): Readable;
del(packet: Pick<Packet, 'messageId'>, cb: PacketCallback): IStore;
get(packet: Pick<Packet, 'messageId'>, cb: PacketCallback): IStore;
close(cb: DoneCallback): void;
}
export default class Store implements IStore {
private options;
private _inflights;
constructor(options?: IStoreOptions);
put(packet: Packet, cb: DoneCallback): this;
createStream(): Readable;
del(packet: Pick<Packet, 'messageId'>, cb: PacketCallback): this;
get(packet: Pick<Packet, 'messageId'>, cb: PacketCallback): this;
close(cb: DoneCallback): void;
}