UNPKG

@kikiutils/nitro-session

Version:
13 lines 682 B
import type { H3Event } from 'h3'; import type { PluginOptions } from '../../types/options'; import type { PartialH3EventContextSession } from '../../types/session'; export type StoredData = [number, PartialH3EventContextSession, ip?: string]; export declare class DataHandler { #private; private constructor(); static createInstance(options: PluginOptions): Promise<DataHandler>; delete(token: string): Promise<void>; get(event: H3Event, token: string): Promise<Partial<import("../..").H3EventContextSession> | undefined>; setAndGetToken(event: H3Event, data: PartialH3EventContextSession): Promise<string | undefined>; } //# sourceMappingURL=index.d.ts.map