@kikiutils/nitro-session
Version:
Easy-to-use nitro session.
11 lines • 488 B
TypeScript
import type { H3Event } from 'h3';
import type { DataStorageOptions } from '../../types/options';
import type { StoredData } from './';
export declare class CookieOrHeaderDataHandler {
#private;
constructor(options?: DataStorageOptions.CookieOrHeader['options']);
delete(_: string): void;
get(_: H3Event, token: string): StoredData | undefined;
setOrProcessAndGetToken(_: H3Event, data: StoredData): string | undefined;
}
//# sourceMappingURL=cookie-or-header.d.ts.map