import { GetSessionResponse } from '@dvn/kimlik/api/dto/CreateSession';
import { CreateSessionResponse } from './dto';
export declare const STORAGE_KEY_KIMLIK_USER_ID = "kimlik_uid";
export declare const STORAGE_KEY_KIMLIK_TOKEN = "kimlik_token";
export interface KimlikApi {
  activateUser: (email: string, firstName: string, lastName: string, password: string) => Promise<CreateSessionResponse>;
  addAuthInterceptor: (token: string) => void;
  getSession: () => Promise<GetSessionResponse>;
  login: (email: string, password: string) => Promise<CreateSessionResponse>;
  logout: () => Promise<{}>;
  register: (email: string, firstName: string, lastName: string, password: string) => Promise<CreateSessionResponse>;
}
export declare class KimlikApiImpl implements KimlikApi {
  private api;
  constructor(endpoint: string, defaultHeaders?: object);
  register: (email: string, firstName: string, lastName: string, password: string) => Promise<CreateSessionResponse>;
  login: (email: string, password: string) => Promise<CreateSessionResponse>;
  activateUser: (email: string, firstName: string, lastName: string, password: string) => Promise<CreateSessionResponse>;
  logout: () => Promise<{}>;
  addAuthInterceptor: (token: string) => void;
  getSession: () => Promise<GetSessionResponse>;
}
