UNPKG

killa

Version:

State management for Vanilla and React

25 lines (24 loc) 1.86 kB
export declare const noop: () => void; export declare const addDocumentEvent: { <K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void; (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void; }, removeDocumentEvent: { <K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions | undefined): void; (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void; }; export declare const addWindowEvent: { <K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void; (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void; } & typeof addEventListener, removeWindowEvent: { <K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions | undefined): void; (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void; } & typeof removeEventListener; export declare const serialize: <T>(value: T) => string; export declare const deserialize: <T>(value: string) => T | null; export declare const merge: <T = unknown, U = unknown>(object: T, objectToMerge: U) => T & U; export declare const messageError: { (...data: any[]): void; (message?: any, ...optionalParams: any[]): void; }; export declare const encoded: (str: string) => string; export declare const decoded: (str: string) => string;