import type { Context, ContractToFunction } from '@aeriajs/types'; import type { description } from './description.js'; export declare const ActivationError: { readonly UserNotFound: "USER_NOT_FOUND"; readonly AlreadyActiveUser: "ALREADY_ACTIVE_USER"; readonly InvalidLink: "INVALID_LINK"; readonly InvalidToken: "INVALID_TOKEN"; }; export declare const activateContract: { readonly payload: { readonly type: "object"; readonly required: readonly []; readonly properties: { readonly password: { readonly type: "string"; }; readonly userId: { readonly type: "string"; }; readonly token: { readonly type: "string"; }; }; }; readonly response: [{ readonly type: "object"; readonly properties: { readonly _tag: { readonly const: "Error"; }; readonly result: { readonly const: undefined; readonly isConstUndefined: true; }; readonly error: { readonly type: "object"; readonly required: readonly ["httpStatus", "code"]; readonly properties: { readonly httpStatus: { readonly enum: [404, 403, 401, 422]; }; readonly code: { readonly enum: ["RESOURCE_NOT_FOUND", "MALFORMED_INPUT", "ALREADY_ACTIVE_USER", "INVALID_LINK", "INVALID_TOKEN", "USER_NOT_FOUND"]; }; readonly message: { readonly type: "string"; }; readonly details: { readonly type: "object"; readonly additionalProperties: true; }; }; }; }; }, { readonly type: "object"; readonly properties: { readonly _tag: { readonly const: "Result"; }; readonly error: { readonly const: undefined; readonly isConstUndefined: true; }; readonly result: { readonly type: "object"; readonly properties: { readonly userId: { readonly type: "string"; readonly format: "objectid"; }; }; }; }; }]; }; export declare const activate: ContractToFunction>;