import type { _NSArray } from "../Foundation/NSArray.js";
import type { _NSError } from "../Foundation/NSError.js";
import type { _NSExtensionContext } from "../Foundation/NSExtensionContext.js";
import type { _ASOneTimeCodeCredential } from "./ASOneTimeCodeCredential.js";
import type { _ASPasskeyAssertionCredential } from "./ASPasskeyAssertionCredential.js";
import type { _ASPasskeyRegistrationCredential } from "./ASPasskeyRegistrationCredential.js";
import type { _ASPasswordCredential } from "./ASPasswordCredential.js";
export declare class _ASCredentialProviderExtensionContext extends _NSExtensionContext {
    static alloc(): _ASCredentialProviderExtensionContext;
    static new(): _ASCredentialProviderExtensionContext;
    init(): _ASCredentialProviderExtensionContext;
    /**
     * Complete the request by providing the user selected credential. the credential that the user has selected. optionally contains any work which the extension may need to perform after the request has been completed, as a background-priority task. The `expired` parameter will be YES if the system decides to prematurely terminate a previous non-expiration invocation of the completionHandler. Calling this method will eventually dismiss the associated view controller.
     */
    completeRequestWithSelectedCredential$completionHandler$(credential: _ASPasswordCredential, completionHandler: ((expired: boolean) => void) | null): void;
    /**
     * Complete the assertion request by providing the user selected passkey credential. the credential that the user has selected. Includes assertion response. optionally contains any work which the extension may need to perform after the request has been completed, as a background-priority task. The `expired` parameter will be YES if the system decides to prematurely terminate a previous non-expiration invocation of the completionHandler. Calling this method will eventually dismiss the associated view controller.
     */
    completeAssertionRequestWithSelectedPasskeyCredential$completionHandler$(credential: _ASPasskeyAssertionCredential, completionHandler: ((expired: boolean) => void) | null): void;
    /**
     * Complete the registration request by providing the newly created passkey credential. the credential that was created in response to the registration request. optionally contains any work which the extension may need to perform after the request has been completed, as a background-priority task. The `expired` parameter will be YES if the system decides to prematurely terminate a previous non-expiration invocation of the completionHandler. Calling this method will eventually dismiss the associated view controller.
     */
    completeRegistrationRequestWithSelectedPasskeyCredential$completionHandler$(credential: _ASPasskeyRegistrationCredential, completionHandler: ((expired: boolean) => void) | null): void;
    /**
     * Complete the request by providing the user selected one time code credential. the credential that the user has selected. optionally contains any work which the extension may need to perform after the request has been completed, as a background-priority task. The `expired` parameter will be YES if the system decides to prematurely terminate a previous non-expiration invocation of the completionHandler. Calling this method will eventually dismiss the associated view controller.
     */
    completeOneTimeCodeRequestWithSelectedCredential$completionHandler$(credential: _ASOneTimeCodeCredential, completionHandler: ((expired: boolean) => void) | null): void;
    /**
     * Signal that a password request was successfully saved. - parameter completionHandler: An optional block your extension can provide to perform any cleanup work after the system has captured the results. The expired parameter is true if the system decides to prematurely end a previous non-expiration invocation of the completion handler. - note: You are responsible for updating the ASCredentialIdentityStore.
     */
    completeSavePasswordRequestWithCompletionHandler$(completionHandler: ((expired: boolean) => void) | null): void;
    /**
     * Return potential passwords for the given request. - parameter results: Potential passwords that the user can select. You can provide multiple options for increased flexibility on the user's behalf. These results should be returned in priority order. - parameter completionHandler: An optional block your extension can provide to perform any cleanup work after the system has captured the results. The expired parameter is true if the system decides to prematurely end a previous non-expiration invocation of the completion handler.
     */
    completeGeneratePasswordRequestWithResults$completionHandler$(results: _NSArray, completionHandler: ((expired: boolean) => void) | null): void;
    /**
     * Complete the request to configure the extension. Calling this method will eventually dismiss the associated view controller.
     */
    completeExtensionConfigurationRequest(): void;
    /**
     * Cancels the request. error's domain should be ASExtensionErrorDomain and the code should be a value of type ASExtensionErrorCode. The extension should call this method when the user cancels the action or a failure occurs.
     */
    cancelRequestWithError$(error: _NSError): void;
}
