import type { BrowserConfiguration } from "../config/Configuration.js";
/**
 * Returns `true` when every ancestor browsing context is same-origin with
 * `win`. A top-level document has no ancestors, so it always passes.
 */
export declare function allAncestorsSameOrigin(win: Window): boolean;
/**
 * Returns `true` when the top-level window has no opener, or one that is
 * same-origin with it.
 *
 * Reads the opener from `win.top`, not `win`: a framed document always reports
 * `window.opener === null` and would pass while the top window's untrusted
 * opener still holds a handle on it.
 */
export declare function topOpenerIsSameOriginOrAbsent(win: Window): boolean;
/**
 * Computes the `pocd` ("popup origin check done") authorize parameter value.
 *
 * `1` means no untrusted window can reach the popup, which is what lets Entra
 * omit the `Cross-Origin-Opener-Policy` response header for the request.
 *
 * @param config Resolved browser configuration.
 * @param win Window whose hosting environment is being checked. Defaults to the app window.
 * @returns `1` when the check passes, otherwise `0`.
 */
export declare function computePocd(config: BrowserConfiguration, win?: Window | undefined): 0 | 1;
//# sourceMappingURL=PopupOriginCheck.d.ts.map