/**
 * This file was auto-generated by Fern from our API Definition.
 */
import * as environments from "../../../../environments";
import * as core from "../../../../core";
import * as TrophyApi from "../../..";
export declare namespace Achievements {
    interface Options {
        environment?: core.Supplier<environments.TrophyApiEnvironment | string>;
        apiKey: core.Supplier<string>;
    }
    interface RequestOptions {
        timeoutInSeconds?: number;
        maxRetries?: number;
    }
}
export declare class Achievements {
    protected readonly _options: Achievements.Options;
    constructor(_options: Achievements.Options);
    /**
     * Mark an achievement as completed for a user.
     * @throws {@link TrophyApi.UnauthorizedError}
     * @throws {@link TrophyApi.NotFoundError}
     * @throws {@link TrophyApi.UnprocessableEntityError}
     *
     * @example
     *     await trophyApi.achievements.complete("finish-onboarding", {
     *         user: {
     *             id: "user-id"
     *         }
     *     })
     */
    complete(key: string, request: TrophyApi.AchievementsCompleteRequest, requestOptions?: Achievements.RequestOptions): Promise<TrophyApi.AchievementCompletionResponse>;
}
