import type { H3Event } from "h3"; import { type IntegrationsPluginOptions } from "../integrations/index.js"; import type { OnboardingPluginOptions } from "../onboarding/plugin.js"; import { type TerminalPluginOptions } from "../terminal/terminal-plugin.js"; import { type AgentChatPluginOptions } from "./agent-chat-plugin.js"; import type { AuthOptions, AuthSession } from "./auth.js"; import { type CoreRoutesPluginOptions } from "./core-routes-plugin.js"; type NitroPluginDef = (nitroApp: any) => void | Promise; export interface AgentNativeEmbeddedHostSession { email?: string | null; emailVerified?: boolean | null; userId?: string | null; token?: string | null; name?: string | null; orgId?: string | null; orgRole?: string | null; organizationId?: string | null; role?: string | null; [key: string]: unknown; } export type AgentNativeEmbeddedGetSession = (event: H3Event) => AgentNativeEmbeddedHostSession | null | Promise; export interface AgentNativeEmbeddedAuthOptions extends Omit { getSession: AgentNativeEmbeddedGetSession; getBrowserSession?: AgentNativeEmbeddedGetSession; } export interface AgentNativeEmbeddedPluginOptions { databaseUrl?: string; appName?: string; auth?: AgentNativeEmbeddedGetSession | AgentNativeEmbeddedAuthOptions; actions?: AgentChatPluginOptions["actions"]; agentChat?: AgentChatPluginOptions | false; coreRoutes?: CoreRoutesPluginOptions | false; resources?: boolean; org?: boolean; onboarding?: boolean | OnboardingPluginOptions; integrations?: IntegrationsPluginOptions | false; sentry?: boolean; terminal?: TerminalPluginOptions | false; } export declare function normalizeAgentNativeEmbeddedSession(session: AgentNativeEmbeddedHostSession | null | undefined): AuthSession | null; export declare function configureAgentNativeEmbeddedEnvironment(options: Pick): void; export declare function createAgentNativeEmbeddedAuthOptions(auth: AgentNativeEmbeddedPluginOptions["auth"]): AuthOptions | undefined; export declare function mountAgentNativeEmbedded(nitroApp: any, options?: AgentNativeEmbeddedPluginOptions): Promise; export declare function createAgentNativeEmbeddedPlugin(options?: AgentNativeEmbeddedPluginOptions): NitroPluginDef; export {};