/** Downloads an A-A-S-A file from a domain. If specified, the timeout is in seconds. */ type DlCommand = { command: "dl"; domain: string; timeout?: number; }; /** Gets info about apps and/or domains. */ type GetCommand = { command: "get"; service?: string; appId?: string; domain?: string; }; /** Open a URL as a universal link. */ type OpenulCommand = { command: "openul"; url: string; referrerUrl?: string; }; /** Show the current state. */ type ShowCommand = { command: "show"; }; /** Verify apple-app-site-association files. Use -u to match a URL. */ type VerifyCommand = { command: "verify"; domain?: string; json: string | Record; url?: string; }; /** Reset the database and restart swcd. */ type ResetCommand = { command: "reset"; }; /** Watch the system log for SWC logging. Specify --verbose to enable debug-level logging. */ type WatchCommand = { command: "watch"; }; /** Test a pattern-matching dictionary against a URL. */ type MatchCommand = { command: "match"; url: string; json: string | Record; }; /** Enable or disable developer mode. */ type DeveloperModeCommand = { command: "developer-mode"; enable: boolean; }; export type Command = DlCommand | GetCommand | OpenulCommand | ShowCommand | VerifyCommand | ResetCommand | WatchCommand | MatchCommand | DeveloperModeCommand; export type SharedOptions = { /** Run leaks before termination. */ leaks?: boolean; /** Run vmmap before termination. */ vmmap?: boolean; /** Run heap before termination. */ heap?: boolean; /** Increase verbosity of output. */ verbose?: boolean; }; export type Options = SharedOptions & Command; export type Result = { stdout: string; stderr: string; status: number; }; export declare function swcutil(options: Options): Promise; export {};