import type { Selectable } from 'kysely'; import type { Code, FoundRequestResult, RequestData, RequestId, UpdateRequestData } from '@atproto/oauth-provider/store'; import type { AccountDb, AuthorizationRequest } from '../db/index.js'; export declare const rowToRequestData: (row: Selectable) => RequestData; export declare const rowToFoundRequestResult: (row: Selectable) => FoundRequestResult; export declare const createQB: (db: AccountDb, id: RequestId, data: RequestData) => import("kysely").InsertQueryBuilder; export declare const readQB: (db: AccountDb, id: RequestId) => import("kysely").SelectQueryBuilder; clientId: string; code: `cod-${string}` | null; deviceId: `dev-${string}` | null; did: `did:${string}:${string}` | null; expiresAt: `${string}T${string}Z`; id: `req-${string}`; parameters: import("../../db/cast.js").JsonEncoded<{ client_id: string; state?: string | undefined; redirect_uri?: "http://127.0.0.1" | `${string}.${string}:/${string}` | `http://127.0.0.1#${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `http://127.0.0.1?${string}` | `http://[::1]${string}` | `https://${string}` | undefined; scope?: string | undefined; response_type: "code" | "code id_token" | "code id_token token" | "code token" | "id_token" | "id_token token" | "none" | "token"; code_challenge?: string | undefined; code_challenge_method?: "S256" | "plain" | undefined; dpop_jkt?: string | undefined; response_mode?: "form_post" | "fragment" | "query" | undefined; nonce?: string | undefined; max_age?: number | undefined; claims?: Partial>>> | undefined; login_hint?: string | undefined; ui_locales?: string | undefined; id_token_hint?: `${string}.${string}.${string}` | undefined; display?: "page" | "popup" | "touch" | "wap" | undefined; prompt?: "consent" | "create" | "login" | "none" | "select_account" | undefined; authorization_details?: { type: string; locations?: `${string}:${string}`[] | undefined; actions?: string[] | undefined; datatypes?: string[] | undefined; identifier?: string | undefined; privileges?: string[] | undefined; }[] | undefined; }>; }>; export declare const updateQB: (db: AccountDb, id: RequestId, { code, did, deviceId, expiresAt, parameters, ...rest }: UpdateRequestData) => import("kysely").UpdateQueryBuilder; export declare const removeOldExpiredQB: (db: AccountDb, delay?: number) => import("kysely").DeleteQueryBuilder; export declare const removeByIdQB: (db: AccountDb, id: RequestId) => import("kysely").DeleteQueryBuilder; export declare const consumeByCodeQB: (db: AccountDb, code: Code) => import("kysely").DeleteQueryBuilder; clientId: string; code: `cod-${string}` | null; deviceId: `dev-${string}` | null; did: `did:${string}:${string}` | null; expiresAt: `${string}T${string}Z`; id: `req-${string}`; parameters: import("../../db/cast.js").JsonEncoded<{ client_id: string; state?: string | undefined; redirect_uri?: "http://127.0.0.1" | `${string}.${string}:/${string}` | `http://127.0.0.1#${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `http://127.0.0.1?${string}` | `http://[::1]${string}` | `https://${string}` | undefined; scope?: string | undefined; response_type: "code" | "code id_token" | "code id_token token" | "code token" | "id_token" | "id_token token" | "none" | "token"; code_challenge?: string | undefined; code_challenge_method?: "S256" | "plain" | undefined; dpop_jkt?: string | undefined; response_mode?: "form_post" | "fragment" | "query" | undefined; nonce?: string | undefined; max_age?: number | undefined; claims?: Partial>>> | undefined; login_hint?: string | undefined; ui_locales?: string | undefined; id_token_hint?: `${string}.${string}.${string}` | undefined; display?: "page" | "popup" | "touch" | "wap" | undefined; prompt?: "consent" | "create" | "login" | "none" | "select_account" | undefined; authorization_details?: { type: string; locations?: `${string}:${string}`[] | undefined; actions?: string[] | undefined; datatypes?: string[] | undefined; identifier?: string | undefined; privileges?: string[] | undefined; }[] | undefined; }>; }>; //# sourceMappingURL=authorization-request.d.ts.map