export type User = {
    external_id: number | string;
    name: string;
    email: string;
};
export declare class Api {
    private $fetch;
    private user?;
    constructor(bookId: string, apiKey?: string);
    setUser(user: User): void;
    load(): Promise<any>;
    stats(type: string, data?: object): Promise<any>;
}
