declare const get: (uuid: string, args?: undefined | HTTPStateGetArgsType) => Promise; declare const load: () => Promise; type MessageType = { uuid: string; timestamp: number; type: number; value: Uint8Array; }; declare const message: { unpack(ab: ArrayBuffer): MessageType; }; declare const post: (uuid: string, data?: undefined | string, args?: undefined | HTTPStateSetArgsType) => Promise; declare const put: (uuid: string, data?: undefined | string, args?: undefined | HTTPStateSetArgsType) => Promise; declare const read: (uuid: string, args?: undefined | HTTPStateGetArgsType) => Promise; declare const set: (uuid: string, data?: undefined | string, args?: undefined | HTTPStateSetArgsType) => Promise; declare const write: (uuid: string, data?: undefined | string, args?: undefined | HTTPStateSetArgsType) => Promise; type HTTPStateGetArgsType = { etag?: boolean; data?: boolean; }; type HTTPStateGetReturnType = { etag?: undefined | string; data: undefined | string; }; type HTTPStateSetArgsType = { Authorization?: undefined | string; }; type HTTPStateType = { data?: undefined | string; et?: undefined | { [type: string]: ((data?: undefined | string) => void)[]; }; uid?: undefined | string; uuid?: undefined | string; visibilitychange?: undefined | ((() => void) & { now?: number; }); ws: { _?: undefined | HTTPStateWebSocketType; delete(): void; new: () => void; }; addEventListener(type: string, callback: (data?: undefined | string) => void): void; delete(): void; emit(type: string, data?: undefined | string): HTTPStateType; get(args?: undefined | HTTPStateGetArgsType): Promise; off(type: string, callback?: (data?: undefined | string) => void): HTTPStateType; on(type: string, callback: (data?: undefined | string) => void): HTTPStateType; post(data?: undefined | string, args?: undefined | HTTPStateSetArgsType): Promise; put(data?: undefined | string, args?: undefined | HTTPStateSetArgsType): Promise; read(args?: undefined | HTTPStateGetArgsType): Promise; removeEventListener(type: string, callback: (data?: undefined | string) => void): void; set(data?: undefined | string, args?: undefined | HTTPStateSetArgsType): Promise; write(data?: undefined | string, args?: undefined | HTTPStateSetArgsType): Promise; }; type HTTPStateWebSocketType = { _?: undefined | { [uuid: string]: { [uid: string]: { [type: string]: ((data?: undefined | string) => void)[]; }; }; }; ws?: undefined | (WebSocket & { pingInterval?: ReturnType; }); addEventListener(uid: string, uuid: string, type: string, callback: (data?: undefined | string) => void): void; close(uid: string, uuid: string): void; delete(): void; dispatchEvent(uuid: string, type: string, data?: undefined | string): void; open(uid: string, uuid: string): HTTPStateWebSocketType; new: (() => void) & { timeout?: number; }; }; declare const HTTPState: (uuid: string) => HTTPStateType; declare const HTTPStateWebSocket: HTTPStateWebSocketType; declare const _default: ((uuid: string) => HTTPStateType) & { get: (uuid: string, args?: undefined | HTTPStateGetArgsType) => Promise; load: () => Promise; message: { unpack(ab: ArrayBuffer): MessageType; }; read: (uuid: string, args?: undefined | HTTPStateGetArgsType) => Promise; post: (uuid: string, data?: undefined | string, args?: undefined | HTTPStateSetArgsType) => Promise; put: (uuid: string, data?: undefined | string, args?: undefined | HTTPStateSetArgsType) => Promise; set: (uuid: string, data?: undefined | string, args?: undefined | HTTPStateSetArgsType) => Promise; write: (uuid: string, data?: undefined | string, args?: undefined | HTTPStateSetArgsType) => Promise; }; declare const httpstate: (uuid: string) => HTTPStateType; export { HTTPState, type HTTPStateGetArgsType, type HTTPStateGetReturnType, type HTTPStateSetArgsType, type HTTPStateType, HTTPStateWebSocket, type HTTPStateWebSocketType, type MessageType, _default as default, get, httpstate, load, message, post, put, read, set, write };