import * as _supabase_supabase_js from '@supabase/supabase-js'; import { SupabaseClientOptions, GoTrueClientOptions, Session } from '@supabase/supabase-js'; import { CookieSerializeOptions } from 'cookie'; export { parse as parseCookies, serialize as serializeCookie } from 'cookie'; import { GenericSchema } from '@supabase/supabase-js/dist/module/lib/types'; type CookieOptions = Pick; type DefaultCookieOptions = Pick; type CookieOptionsWithName = { name?: string; } & CookieOptions; type SupabaseClientOptionsWithoutAuth = Omit, 'auth'>; interface StorageAdapter extends Exclude { } declare abstract class CookieAuthStorageAdapter implements StorageAdapter { protected readonly cookieOptions: DefaultCookieOptions; constructor(cookieOptions?: CookieOptions); protected abstract getCookie(name: string): string | undefined | null; protected abstract setCookie(name: string, value: string): void; protected abstract deleteCookie(name: string): void; getItem(key: string): string | Promise | null; setItem(key: string, value: string): void | Promise; removeItem(key: string): void | Promise; private _deleteSingleCookie; private _deleteChunkedCookies; } declare class BrowserCookieAuthStorageAdapter extends CookieAuthStorageAdapter { constructor(cookieOptions?: CookieOptions); protected getCookie(name: string): string | null; protected setCookie(name: string, value: string): null | undefined; protected deleteCookie(name: string): null | undefined; } declare function createSupabaseClient(supabaseUrl: string, supabaseKey: string, options: SupabaseClientOptionsWithoutAuth & { auth: { storage: StorageAdapter; storageKey?: string; }; }): _supabase_supabase_js.SupabaseClient; declare function parseSupabaseCookie(str: string | null | undefined): Partial | null; declare function stringifySupabaseSession(session: Session): string; declare function isBrowser(): boolean; declare const DEFAULT_COOKIE_OPTIONS: DefaultCookieOptions; export { BrowserCookieAuthStorageAdapter, CookieAuthStorageAdapter, CookieOptions, CookieOptionsWithName, DEFAULT_COOKIE_OPTIONS, DefaultCookieOptions, StorageAdapter, SupabaseClientOptionsWithoutAuth, createSupabaseClient, isBrowser, parseSupabaseCookie, stringifySupabaseSession };