export type BunchScheme = 'x-bunch' | 'x-bunch-beta'; export type BunchDebugLevel = 0 | 1 | 2 | 3 | 4; export type BunchBoolean = 0 | 1 | 'true' | 'false' | 'yes' | 'no'; export type BunchVariables = Record; export type BunchMethodSyntax = 'query' | 'path'; export type BunchOpenSyntax = BunchMethodSyntax | 'shortcut'; export type BunchCallbacks = { /** * URL scheme to use. Bunch Beta can be targeted with `x-bunch-beta`. */ scheme?: BunchScheme; /** * Use Bunch's documented x-callback-url path format. */ xCallback?: boolean; /** * Optional x-callback-url source. Supplying this also uses x-callback-url format. */ 'x-source'?: string; /** * Bundle ID, app name, or URL to open after executing the method. */ 'x-success'?: string; /** * Number of seconds Bunch waits before calling `x-success`. */ 'x-delay'?: number; }; export type BunchByName = { /** * Bunch name without the `.bunch` extension. */ bunch: string; tag?: never; }; export type BunchByTag = { /** * Tag or tag combination. Bunch documents comma for OR and plus for AND. */ tag: string; bunch?: never; }; export type BunchTarget = BunchByName | BunchByTag; export type BunchTargetPayload = BunchTarget & BunchCallbacks; export declare function bunchUrl(method: string, params?: Record, payload?: BunchCallbacks): string; export declare function bunchPathUrl(method: string, bunch: string, params?: Record, payload?: BunchCallbacks): string; export declare function bunchSegmentsUrl(segments: string[], params?: Record, payload?: BunchCallbacks): string; export declare function targetParams(payload: BunchTarget): { tag?: string | undefined; bunch?: string | undefined; };