import { IOidcTokenError, IOidcTokenInfo, IOAuth2Authorization } from '@api-client/core/build/browser.js';
import ApiElement from '../ApiElement.js';
export declare const authorizeHandler: unique symbol;
export default class OidcAuthorize extends ApiElement {
    /**
     * When set it uses this value to prefix the call to the
     * OAuth 2 token endpoint. This is to support use cases when
     * the requests should be proxied through a server to avoid CORS problems.
     * @attribute
     */
    tokenProxy?: string;
    /**
     * When set it encodes the token URI value before adding it to the
     * `tokenProxy`. This is to be used when the proxy takes the target
     * URL as a query parameter.
     * @attribute
     */
    tokenProxyEncode?: boolean;
    constructor();
    connectedCallback(): void;
    disconnectedCallback(): void;
    [authorizeHandler](event: Event): void;
    /**
     * Authorize the user using provided settings.
     * This is left for compatibility. Use the `OAuth2Authorization` instead.
     *
     * @param settings The authorization configuration.
     */
    authorize(settings: IOAuth2Authorization): Promise<(IOidcTokenInfo | IOidcTokenError)[]>;
}
//# sourceMappingURL=OidcAuthorize.d.ts.map