import { AthenaAuthRoutingDebugConfig } from '../../../auth/routing-debug.js'; import { AthenaDevtoolsDataEvent, AthenaDevtoolsTraceGroup } from './athena-devtools-data.js'; import { ATHENA_DEVTOOLS_EXPORT_KIND, ATHENA_DEVTOOLS_EXPORT_SCHEMA_ID, ATHENA_DEVTOOLS_EXPORT_SCHEMA_VERSION } from './athena-devtools-export-schema.js'; import { AthenaDevtoolsPackageVersion } from './athena-devtools-package-versions.js'; import { AthenaDevtoolsPasskeyCeremony, AthenaDevtoolsRegistrationCeremony, AthenaDevtoolsRuntimeSnapshot, AthenaDevtoolsSanitizedRequest, AthenaDevtoolsStoredPasskey } from './athena-devtools-runtime.js'; export { ATHENA_DEVTOOLS_EXPORT_JSON_SCHEMA, ATHENA_DEVTOOLS_EXPORT_KIND, ATHENA_DEVTOOLS_EXPORT_SCHEMA_ID, ATHENA_DEVTOOLS_EXPORT_SCHEMA_VERSION } from './athena-devtools-export-schema.js'; export type AthenaDevtoolsExportKind = typeof ATHENA_DEVTOOLS_EXPORT_KIND; export type AthenaDevtoolsExportSchemaVersion = typeof ATHENA_DEVTOOLS_EXPORT_SCHEMA_VERSION; export interface AthenaDevtoolsExportCapabilities { emailAndPassword: boolean | null; fetchedAt: number | null; organizations: boolean | null; passkey: { authentication: boolean | null; conditionalUi: boolean | null; enabled: boolean | null; management: boolean | null; onboarding: boolean | null; registration: boolean | null; } | null; passkeys: boolean | null; password: boolean | null; sessions: boolean | null; socialProviders: string[]; source: string; status: string; twoFactor: boolean | null; } export interface AthenaDevtoolsExportPasskey { authenticateCeremony: AthenaDevtoolsPasskeyCeremony | null; authenticateError: string | null; registrationCeremony: AthenaDevtoolsRegistrationCeremony | null; registrationError: string | null; relatedOrigins: string[] | null; storedPasskeys: AthenaDevtoolsStoredPasskey[] | null; storedPasskeysError: string | null; } export interface AthenaDevtoolsExportRouting { defaultConfig: AthenaAuthRoutingDebugConfig | null; draft: AthenaAuthRoutingDebugConfig | null; observedBases: string[]; publicUpstreamUrl: string | null; resolved: { browserRequestBaseUrl: string | null; mode: string | null; proxyUpstreamBaseUrl: string | null; serverRequestBaseUrl: string | null; source: "resolved-client" | "unresolved" | null; status: "known" | "unknown"; }; saved: AthenaAuthRoutingDebugConfig | null; urls: { activeBaseUrl: string; proxyUrl: string; } | null; } export interface AthenaDevtoolsExportSession { email: string | null; name: string | null; status: string | null; userId: string | null; } export interface AthenaDevtoolsExportEnvironment { bundler: string | null; hmrGeneration: number | null; mode: string | null; nextBuildId: string | null; } export interface AthenaDevtoolsExportDiagnostics { currentSurface: Record | null; findings: unknown[]; summary: { primaryFinding: string | null; status: "ok" | "blocked" | "pending" | "error"; }; } export interface AthenaDevtoolsExportDocument { $schema: typeof ATHENA_DEVTOOLS_EXPORT_SCHEMA_ID; capabilities: AthenaDevtoolsExportCapabilities | null; data: { events: AthenaDevtoolsDataEvent[]; }; diagnostics: AthenaDevtoolsExportDiagnostics; environment: AthenaDevtoolsExportEnvironment; exportedAt: string; href: string | null; kind: AthenaDevtoolsExportKind; packages: AthenaDevtoolsPackageVersion[]; passkey: AthenaDevtoolsExportPasskey | null; pathname: string | null; requests: AthenaDevtoolsSanitizedRequest[]; routing: AthenaDevtoolsExportRouting | null; runtime: AthenaDevtoolsRuntimeSnapshot | null; schemaVersion: AthenaDevtoolsExportSchemaVersion; session: AthenaDevtoolsExportSession | null; surfaces: { capabilities: boolean; routing: boolean; }; traces: { groups: AthenaDevtoolsTraceGroup[]; }; } export interface AthenaDevtoolsExportInput { capabilities?: { emailAndPassword?: boolean | null; fetchedAt?: number; organizations?: boolean | null; passkey?: { authentication?: boolean | null; conditionalUi?: boolean | null; enabled?: boolean | null; management?: boolean | null; onboarding?: boolean | null; registration?: boolean | null; } | null; passkeys?: boolean | null; password?: boolean | null; sessions?: boolean | null; social?: { providers?: string[] | null; } | null; source: string; status: string; twoFactor?: boolean | null; } | null; data?: { events?: AthenaDevtoolsDataEvent[]; } | null; diagnostics?: AthenaDevtoolsExportDiagnostics; environment?: AthenaDevtoolsExportEnvironment; exportedAt?: string; href?: string | null; packages?: AthenaDevtoolsPackageVersion[]; passkey?: AthenaDevtoolsExportPasskey | null; pathname?: string | null; requests?: AthenaDevtoolsSanitizedRequest[]; routing?: AthenaDevtoolsExportRouting | null; runtime?: AthenaDevtoolsRuntimeSnapshot | null; session?: AthenaDevtoolsExportSession | null; surfaces: { capabilities: boolean; routing: boolean; }; } export declare function buildAthenaDevtoolsExportDocument(input: AthenaDevtoolsExportInput): AthenaDevtoolsExportDocument; export declare function serializeAthenaDevtoolsExportDocument(document: AthenaDevtoolsExportDocument): string; export declare function suggestedAthenaDevtoolsExportFileName(exportedAt: string): string; export declare function parseAthenaDevtoolsExportDocument(value: unknown): AthenaDevtoolsExportDocument | null; export declare function readAthenaDevtoolsExportSession(athena: unknown): AthenaDevtoolsExportSession; export declare function downloadAthenaDevtoolsExportDocument(document: AthenaDevtoolsExportDocument): void;