import { type LineIdPayload, type LineIdWithoutAtPayload } from './shared'; export type OpenOfficialAccountProfile = LineIdPayload; export type RecommendOfficialAccount = LineIdPayload; export type OpenOfficialAccountVoom = LineIdWithoutAtPayload; export type OpenOfficialAccountBusinessProfile = LineIdWithoutAtPayload; export type OpenOfficialAccountVoomPost = LineIdWithoutAtPayload & { /** * LINE VOOM post ID. */ postId: string | number; }; export type OpenOfficialAccountChat = LineIdPayload & { /** * Optional text message to put into the message input field. */ text?: string; }; /** * Open a LINE Official Account profile page. * * @param payload LINE Official Account ID payload. * @returns LINE Official Account profile URL. * @example * openOfficialAccountProfile({ lineId: '@linedevelopers' }) * // => 'https://line.me/R/ti/p/%40linedevelopers' * @link https://developers.line.biz/en/docs/messaging-api/using-line-url-scheme/#sharing-line-official-account */ export declare function openOfficialAccountProfile(payload: OpenOfficialAccountProfile): string; /** * Open the Share with screen for a LINE Official Account. * * @param payload LINE Official Account ID payload. * @returns LINE Official Account recommendation URL. * @example * recommendOfficialAccount({ lineId: '@linedevelopers' }) * // => 'https://line.me/R/nv/recommendOA/%40linedevelopers' * @link https://developers.line.biz/en/docs/messaging-api/using-line-url-scheme/#sharing-line-official-account */ export declare function recommendOfficialAccount(payload: RecommendOfficialAccount): string; /** * Open a LINE Official Account's LINE VOOM. * * @param payload LINE Official Account ID without the at-sign (@) prefix. * @returns LINE Official Account LINE VOOM URL. * @example * openOfficialAccountVoom({ lineId: 'linedevelopers' }) * // => 'https://line.me/R/home/public/main?id=linedevelopers' * @link https://developers.line.biz/en/docs/messaging-api/using-line-url-scheme/#opening-line-voom-and-profile */ export declare function openOfficialAccountVoom(payload: OpenOfficialAccountVoom): string; /** * Open a LINE Official Account's business profile. * * @param payload LINE Official Account ID without the at-sign (@) prefix. * @returns LINE Official Account business profile URL. * @example * openOfficialAccountBusinessProfile({ lineId: 'linedevelopers' }) * // => 'https://line.me/R/home/public/profile?id=linedevelopers' * @link https://developers.line.biz/en/docs/messaging-api/using-line-url-scheme/#opening-line-voom-and-profile */ export declare function openOfficialAccountBusinessProfile(payload: OpenOfficialAccountBusinessProfile): string; /** * Open a LINE Official Account's LINE VOOM post. * * @param payload LINE Official Account ID without the at-sign (@) prefix and post ID. * @returns LINE Official Account LINE VOOM post URL. * @example * openOfficialAccountVoomPost({ lineId: 'linedevelopers', postId: '1234567890' }) * // => 'https://line.me/R/home/public/post?id=linedevelopers&postId=1234567890' * @link https://developers.line.biz/en/docs/messaging-api/using-line-url-scheme/#opening-line-voom-and-profile */ export declare function openOfficialAccountVoomPost(payload: OpenOfficialAccountVoomPost): string; /** * Open a chat screen with a LINE Official Account. * * @param payload LINE Official Account ID payload with an optional text message. * @returns LINE Official Account chat URL. * @example * openOfficialAccountChat({ lineId: '@linedevelopers', text: 'Hi there!' }) * // => 'https://line.me/R/oaMessage/%40linedevelopers/?Hi%20there%21' * @link https://developers.line.biz/en/docs/messaging-api/using-line-url-scheme/#opening-chat-screen */ export declare function openOfficialAccountChat(payload: OpenOfficialAccountChat): string;