export type LineQuery = Record; export type LineIdPayload = { /** * LINE Official Account ID. Pass the raw ID; the helper percent-encodes it for URL path segments. */ lineId: string; }; export type LineIdWithoutAtPayload = { /** * LINE Official Account ID without the at-sign (@) prefix. */ lineId: string; }; export type LineAppUrlPayload = { /** * LIFF ID. */ liffId: string; /** * Optional additional path. It is appended after the LIFF ID. */ path?: string; /** * Optional query parameters. */ query?: LineQuery; /** * Optional URL fragment. */ hash?: string; }; export declare function lineR(path: `/${string}`): string; export declare function strictPercentEncode(value: string | number): string; export declare function lineQs(params: LineQuery): string; export declare function lineRWithQuery(path: `/${string}`, query: LineQuery): string; export declare function encodePathSegment(value: string | number): string; export declare function assertLineIdWithoutAt(lineId: string): void; export declare function lineAppUrl(origin: 'https://liff.line.me' | 'https://miniapp.line.me', payload: LineAppUrlPayload): string;