import { DodgeballApiVersion, IDodgeballConfig, IDodgeballCheckpointResponse, ICheckpointOptions, VerificationOutcome, VerificationStatus, ITrackOptions } from "./types";
export declare class Dodgeball {
    secretKey: string;
    config: IDodgeballConfig;
    constructor(secretKey: string, config?: IDodgeballConfig);
    createErrorResponse(code: number, message: string): {
        success: boolean;
        errors: {
            code: number;
            message: string;
        }[];
        version: DodgeballApiVersion;
        verification: {
            id: string;
            status: VerificationStatus;
            outcome: VerificationOutcome;
        };
    };
    event({ userId, sessionId, sourceToken, event, }: ITrackOptions): Promise<void>;
    checkpoint({ checkpointName, event, sourceToken, userId, sessionId, useVerificationId, options, }: ICheckpointOptions): Promise<IDodgeballCheckpointResponse>;
    isRunning(checkpointResponse: IDodgeballCheckpointResponse): boolean;
    isAllowed(checkpointResponse: IDodgeballCheckpointResponse): boolean;
    isDenied(checkpointResponse: IDodgeballCheckpointResponse): boolean;
    isUndecided(checkpointResponse: IDodgeballCheckpointResponse): boolean;
    hasError(checkpointResponse: IDodgeballCheckpointResponse): boolean;
    isTimeout(checkpointResponse: IDodgeballCheckpointResponse): boolean;
}
