export declare class SuccessResult<T> {
    result: T;
    constructor(result: T);
    isSuccess(): this is SuccessResult<T>;
    isError(): false;
}
export declare class ErrorResult {
    error: string;
    constructor(error: string);
    isSuccess(): false;
    isError(): this is ErrorResult;
}
export type RequestResult<T> = SuccessResult<T> | ErrorResult;
