import type { NobjcObject } from "objc-js";
import type { _NSArray } from "../Foundation/NSArray.js";
import type { _NSObject } from "../Foundation/NSObject.js";
import type { _NSPrintInfo } from "./NSPrintInfo.js";
import type { _NSView } from "./NSView.js";
import type { _NSViewController } from "./NSViewController.js";
import type { _NSWindow } from "./NSWindow.js";
import type { NSPageLayoutResult } from "./NSPageLayoutResult.js";
export declare class _NSPageLayout extends _NSObject {
    static alloc(): _NSPageLayout;
    static new(): _NSPageLayout;
    init(): _NSPageLayout;
    /** Create a new NSPageLayout. */
    static pageLayout(): _NSPageLayout;
    /**
     * Controllers for the accessory views that will be presented in the page setup panel by the methods below. When the page setup panel is presented to the user each controller is automatically sent a -setRepresentedObject: message with this object's NSPrintInfo. Because NSViewControllers are KVC and KVO compliant for "representedObject," you can use one as the file's owner of an accessory view's nib and bind controls to the file's owner using key paths that start with "representedObject." to take advantage of NSPrintInfo's KVC and KVO compliance. Each controller is also automatically sent a -title message. If that returns nil the application's short name is used in the popup menu that lets the user choose an accessory view.
     */
    addAccessoryController$(accessoryController: _NSViewController): void;
    removeAccessoryController$(accessoryController: _NSViewController): void;
    /**
     * Displays a page layout panel as a sheet on a window. This method returns immediately. When the page layout panel is dismissed, calls the completion handler with NSPageLayoutResult as the argument.
     */
    beginSheetUsingPrintInfo$onWindow$completionHandler$(printInfo: _NSPrintInfo, parentWindow: _NSWindow, handler: ((result: NSPageLayoutResult) => void) | null): void;
    /**
     * Present a page setup panel to the user, document-modally. When the user has dismissed it, send the message selected by didEndSelector to the delegate, with the contextInfo as the last argument. The method selected by didEndSelector must have the same signature as: - (void)pageLayoutDidEnd:(NSPageLayout *)pageLayout returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo;
     * @deprecated This method will be deprecated in a future release. Use -[NSPageLayout beginSheetUsingPrintInfo:onWindow:completionHandler:] instead.
     */
    beginSheetWithPrintInfo$modalForWindow$delegate$didEndSelector$contextInfo$(printInfo: _NSPrintInfo, docWindow: _NSWindow, delegate: NobjcObject | null, didEndSelector: string | null, contextInfo: Uint8Array | null): void;
    /**
     * Present a page setup panel to the user, application-modally, and return either NSOKButton or NSCancelButton. The default implementation of -runModal just invokes [self runModalWithPrintInfo:[NSPrintInfo sharedPrintInfo]].
     */
    runModalWithPrintInfo$(printInfo: _NSPrintInfo): number;
    runModal(): number;
    /**
     * -setAccessoryView: replaces all of the accessory controllers that have been added so far by -addAccessoryController:. -accessoryView merely returns the view of the first accessory controller, or nil.
     * @deprecated
     */
    setAccessoryView$(accessoryView: _NSView): void;
    /** @deprecated */
    accessoryView(): _NSView;
    /** @deprecated */
    readPrintInfo(): void;
    /** @deprecated */
    writePrintInfo(): void;
    accessoryControllers(): _NSArray;
    /**
     * Returns the printInfo passed to `beginSheetUsingPrintInfo:onWindow:completionHandler:`.
     */
    printInfo(): _NSPrintInfo | null;
}
