/** * Open script payload definition. */ type OpenScript = { /** * The name of the script to open. Must be URL encoded. * * @example 'Example' */ scriptName: string; /** * Automatically open the script settings. * * @default false */ openSettings?: boolean; }; /** * Open an existing script in Scriptable. * * @param payload Open script payload. * @returns Scriptable open script URL. * @example * openScript({ * scriptName: 'Example', * }) * // => 'scriptable:///open/Example' * @example * openScript({ * scriptName: 'Example', * openSettings: true, * }) * // => 'scriptable:///open/Example?openSettings=true' * @link https://docs.scriptable.app/urlscheme/ */ export declare function openScript(payload: OpenScript): string; export {};