import { Elysia } from 'elysia'; import type { CredentialRouteProps } from './config'; /** Fixed routes preserve Eden's route and body inference. The application owns * users, durable stores and email delivery; all credential policy stays in the * existing package handlers. Mount this instead of auth's credentials block. */ export declare const createCredentialsApi: (configuration: Omit, "loginRoute" | "registerRoute" | "verifyEmailRoute" | "resetPasswordRoute">) => Elysia<"", "local", { decorator: {}; store: { session: import("..").SessionRecord; unregisteredSession: import("..").UnregisteredSessionRecord; }; derive: {}; }, { typebox: {}; error: []; }, import("elysia").DefaultMetadata, { auth: { register: { post: { body: { email: string; password: string; }; params: {}; query: unknown; headers: unknown; response: { 200: Response | import("..").StatusReturn; 422: { type: "validation"; code: "validation"; title: "Validation Error"; status: 422; detail?: string; on: string; found?: unknown; property?: string; expected?: string; }; }; error: never; }; }; }; } & { auth: { login: { post: { body: { email: string; password: string; }; params: {}; query: unknown; headers: unknown; response: { 401: "Invalid email or password"; 403: "Request origin is not allowed" | { readonly status: "email_not_verified"; }; 200: { readonly status: "mfa_required"; } | { readonly passwordCompromised: boolean; readonly status: "authenticated"; }; 422: { type: "validation"; code: "validation"; title: "Validation Error"; status: 422; detail?: string; on: string; found?: unknown; property?: string; expected?: string; }; 429: { readonly retryAfterMs: number | undefined; readonly status: "account_locked"; }; }; error: never; }; }; }; } & { auth: { "verify-email": { post: { body: { token: string; }; params: {}; query: unknown; headers: unknown; response: { 200: Response | import("..").StatusReturn; 422: { type: "validation"; code: "validation"; title: "Validation Error"; status: 422; detail?: string; on: string; found?: unknown; property?: string; expected?: string; }; }; error: never; }; }; }; } & { auth: { "verify-email": { request: { post: { body: { email: string; }; params: {}; query: unknown; headers: unknown; response: { 200: { readonly status: "verification_requested"; }; 422: { type: "validation"; code: "validation"; title: "Validation Error"; status: 422; detail?: string; on: string; found?: unknown; property?: string; expected?: string; }; }; error: never; }; }; }; }; } & { auth: { "reset-password": { request: { post: { body: { email: string; }; params: {}; query: unknown; headers: unknown; response: { 200: { readonly status: "reset_requested"; }; 422: { type: "validation"; code: "validation"; title: "Validation Error"; status: 422; detail?: string; on: string; found?: unknown; property?: string; expected?: string; }; }; error: never; }; }; }; }; } & { auth: { "reset-password": { post: { body: { token: string; password: string; }; params: {}; query: unknown; headers: unknown; response: { 400: "Invalid or expired reset token" | { readonly message: "Password does not meet the policy"; readonly violations: import("./passwordPolicy").PasswordPolicyViolation[]; }; 200: { readonly status: "password_reset"; }; 422: { type: "validation"; code: "validation"; title: "Validation Error"; status: 422; detail?: string; on: string; found?: unknown; property?: string; expected?: string; }; }; error: never; }; }; }; }, import("elysia").DefaultEphemeral, { derive: {}; schema: {}; schemas: {}; response: {}; error: []; }>;