/** * Check if the current window has an opener window with the same origin and optional pathname. * This is useful for checking if the current window was opened by another window from within the same application. * @remark If the current window was opened by another window, the opener window is accessible via `window.opener`. * @remark There could still be an opener if the opener window is closed or navigated away or if the opener window is not from the same origin, * but this function will only return `true` if the opener window is accessible and has the same origin and optional pathname. * @param pathname Optional pathname to check if the opener window has the same pathname. * @param windowLike The window-like object to use for checking the opener. Default is `window`. * @returns `true` if the current window has an opener window with the same origin and optional pathname, otherwise `false`. */ export declare function hasOwnOpener(pathname?: string, windowLike?: Window): boolean;