export type Token = `Bearer ${string}` | `Token ${string}`;
/** Uploads an app to the hub manager */
export declare function uploadHubManagerExtension(options: {
    appId: string;
    /** The authentication token issued by the hub manager */
    token: Token;
    /** Optional hub channels */
    channels?: string[];
    /** The app archive (ZIP) */
    archive: Buffer;
    /** The version of the app */
    version: string;
    /** Buffer containing the release notes */
    releaseNotes: Buffer | undefined;
}): Promise<string>;
/**
 * Depending on the token it will return the proper endpoint for publishing an app.
 * If the token string starts with 'Token' it will return the legacy path and otherwise it will return the new path.
 */
export declare function getHubManagerEndpointForPublish(token: Token, appId: string): string;
