import { NextApiRequest, NextApiResponse } from 'next'; import { OAuth2CodeExchangeResponse } from '@kinde-oss/kinde-typescript-sdk'; import { KindeAccessToken, KindeIdToken, KindeOrganization, KindeOrganizations, KindePermission, KindePermissions, KindeUser, KindeRoles } from '../types'; import { getEntitlementsResponse } from '@kinde-oss/kinde-auth-react/utils'; declare const sessionHandler: (req?: NextApiRequest, res?: NextApiResponse) => { refreshTokens: () => Promise; getAccessToken: () => Promise | null; getBooleanFlag: (code: string, defaultValue: boolean) => Promise | null | undefined; getFlag: (code: string, defaultValue: string | number | boolean, flagType: string) => any | null; getIdToken: () => Promise | null; getIdTokenRaw: () => Promise | null; getAccessTokenRaw: () => Promise | null; getIntegerFlag: (code: string, defaultValue: number) => Promise | null | undefined; getOrganization: () => Promise | null>; getPermission: (key: string) => Promise | null; getPermissions: () => Promise; getStringFlag: (code: string, defaultValue: string) => Promise | null | undefined; getUser: >() => Promise | null>; getUserOrganizations: () => Promise; isAuthenticated: () => Promise | null; getRoles: () => Promise; getClaim: (claim: string, tokenKey?: "access_token" | "id_token") => Promise<{ name: string; value: string; }> | null; getEntitlements: () => Promise; }; export default sessionHandler; //# sourceMappingURL=index.d.ts.map