/**
 * Auth0-compatible /api/v2/tickets endpoints.
 *
 * - POST /api/v2/tickets/email-verification — issue a single-use URL that
 *   marks the targeted user's email as verified when followed.
 * - POST /api/v2/tickets/password-change — issue a single-use URL that lets
 *   the targeted user set a new password.
 *
 * Tickets are persisted in the `codes` table with `code_type: "ticket"` and
 * the URL points at /u2/tickets/<type>?ticket=<code_id>, where a follower
 * route consumes the code, performs the action, then redirects to either the
 * caller-supplied `result_url` or the screen for password set.
 */
import { OpenAPIHono } from "@hono/zod-openapi";
import { Bindings, Variables } from "../../types";
export declare const ticketsRoutes: OpenAPIHono<{
    Bindings: Bindings;
    Variables: Variables;
}, {
    "/email-verification": {
        $post: {
            input: {
                header: {
                    "tenant-id"?: string | undefined;
                };
            } & {
                json: {
                    user_id: string;
                    result_url?: string | undefined;
                    ttl_sec?: number | undefined;
                    client_id?: string | undefined;
                    organization_id?: string | undefined;
                    identity?: {
                        user_id?: string | undefined;
                        provider?: string | undefined;
                    } | undefined;
                    includeEmailInRedirect?: boolean | undefined;
                };
            };
            output: {
                ticket: string;
            };
            outputFormat: "json";
            status: 201;
        };
    };
} & {
    "/password-change": {
        $post: {
            input: {
                header: {
                    "tenant-id"?: string | undefined;
                };
            } & {
                json: {
                    user_id?: string | undefined;
                    email?: string | undefined;
                    connection_id?: string | undefined;
                    result_url?: string | undefined;
                    ttl_sec?: number | undefined;
                    client_id?: string | undefined;
                    organization_id?: string | undefined;
                    mark_email_as_verified?: boolean | undefined;
                    includeEmailInRedirect?: boolean | undefined;
                    new_password?: string | undefined;
                };
            };
            output: {
                ticket: string;
            };
            outputFormat: "json";
            status: 201;
        };
    };
}, "/">;
