import type { Context, ContractToFunction } from '@aeriajs/types'; import type { description } from './description.js'; export declare const RedefinePasswordError: { readonly UserNotFound: "USER_NOT_FOUND"; readonly UserNotActive: "USER_NOT_ACTIVE"; readonly InvalidLink: "INVALID_LINK"; readonly InvalidToken: "INVALID_TOKEN"; }; export declare const redefinePasswordContract: { readonly payload: { readonly type: "object"; readonly required: readonly []; readonly properties: { readonly userId: { readonly type: "string"; readonly format: "objectid"; }; readonly password: { 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: [403, 404, 400]; }; readonly code: { readonly enum: ["RESOURCE_NOT_FOUND", "OWNERSHIP_ERROR", "INSECURE_OPERATOR", "MALFORMED_INPUT"]; }; readonly message: { readonly type: "string"; }; readonly details: { readonly type: "object"; readonly additionalProperties: true; }; }; }; }; }, { 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: ["MALFORMED_INPUT", "INVALID_LINK", "INVALID_TOKEN", "USER_NOT_FOUND", "USER_NOT_ACTIVE"]; }; 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 redefinePassword: ContractToFunction>;