import type { AuthBrowserSession, SavedAuthUser, SerializedCookie, UserProfile, WorkspaceOption } from "../lib/types.js"; import { AuthNamespace } from "./auth.js"; import { CommandNamespace } from "./command.js"; export interface OpenMeegoOptions { homeDir: string; } export type OpenMeegoInternalDeps = { fetchImpl: typeof fetch; createAuthSession: (projectOrigin: string) => Promise; fetchUserProfile: (options: { cookies: SerializedCookie[]; projectOrigin: string; }) => Promise; recordLoggedInUser: (homeDir: string, profile: UserProfile, projectOrigin: string) => Promise; saveCookiesFile: (authFilePath: string, cookies: SerializedCookie[]) => Promise; chooseWorkspace?: (workspaces: WorkspaceOption[]) => Promise; resolveAgentAuth: (options: { homeDir: string; }) => Promise<{ cookies: SerializedCookie[]; user: SavedAuthUser; }>; startRecordingSession: (options: { cookies: SerializedCookie[]; projectOrigin: string; startUrl: string; }) => Promise<{ capturedRequests: Array; projectOrigin: string; }>; saveRecordedCommand: (homeDir: string, command: import("../lib/recorded-command.js").RecordedCommand) => Promise; listRecordedCommands: (homeDir: string) => Promise; loadRecordedCommand: (homeDir: string, name: string) => Promise; deleteRecordedCommand: (homeDir: string, name: string) => Promise; executeRecordedStep: (options: { cookies: SerializedCookie[]; projectOrigin: string; step: import("../lib/recorded-command.js").RecordedCommandStep; variables: Record; }) => Promise<{ status: number; data: unknown; }>; }; export declare class OpenMeego { #private; readonly homeDir: string; readonly auth: AuthNamespace; readonly command: CommandNamespace; constructor(options: OpenMeegoOptions, deps?: Partial); /** @internal */ getDeps(): Partial | undefined; } export type { SavedAuthUser, UserProfile, WorkspaceOption, }; export { buildRecordedCommand } from "../lib/recording-session.js"; export type { CapturedRecordingRequest, RecordingAnalysis, RecordingCapture } from "../lib/recording-session.js"; export type { RecordedCommand, RecordedCommandStep, RecordedCommandVariable } from "../lib/recorded-command.js"; //# sourceMappingURL=index.d.ts.map