/** * Show command payload definition. */ type Show = { /** * The ID of an area, project, tag or to-do to show; or one of the built-in list IDs. * Takes precedence over query. */ id?: string; /** * The name of an area, project, tag or a built-in list to show. * Ignored if id is also set. */ query?: string; /** * Comma separated strings corresponding to the titles of tags that the list should be filtered by. */ filter?: string; }; /** * Show command payload with at least one parameter. */ type ShowPayload = (Pick, 'id'> & Omit) | (Pick, 'query'> & Omit) | (Pick, 'filter'> & Omit); /** * Show an area, project, tag or to-do in Things, or one of the built-in lists. * * @param payload Show command payload. * @returns Things show URL. * @example * show({ id: 'today' }) * // => 'things:///show?id=today' * @example * show({ id: 'GJJVZHE7SNu7xcVuH2xDDh' }) * // => 'things:///show?id=GJJVZHE7SNu7xcVuH2xDDh' * @example * show({ query: 'vacation' }) * // => 'things:///show?query=vacation' * @example * show({ query: 'vacation', filter: 'errand' }) * // => 'things:///show?query=vacation&filter=errand' * @link https://culturedcode.com/things/support/articles/2803573/#show */ export declare function show(payload?: ShowPayload): string; export {};