import { IConnection, IOptions } from "../connection";
export declare namespace WsCodesign {
    interface ListUserIDsRequest {
    }
    interface WsCodesignPingRequest {
    }
    interface SignRequest {
        SigningMethod?: string;
        UserID: string;
        KeyPass: string;
        Text: string;
    }
    interface VerifyRequest {
        Text: string;
    }
    interface Exception {
        Code: string;
        Audience: string;
        Source: string;
        Message: string;
    }
    interface Exceptions {
        Source: string;
        Exception: Exception[];
    }
    interface UserIDs {
        Item: string[];
    }
    interface ListUserIDsResponse {
        Exceptions: Exceptions;
        UserIDs: UserIDs;
    }
    interface WsCodesignPingResponse {
    }
    interface SignResponse {
        Exceptions: Exceptions;
        RetCode: number;
        ErrMsg: string;
        SignedText: string;
    }
    interface VerifyResponse {
        Exceptions: Exceptions;
        RetCode: number;
        ErrMsg: string;
        IsVerified: boolean;
        SignedBy: string;
    }
}
export declare class CodesignService {
    private _connection;
    constructor(optsConnection: IOptions | IConnection);
    connectionOptions(): IOptions;
    ListUserIDs(request: WsCodesign.ListUserIDsRequest): Promise<string[]>;
    Sign(request: WsCodesign.SignRequest): Promise<WsCodesign.SignResponse>;
    Verify(request: WsCodesign.VerifyRequest): Promise<WsCodesign.VerifyResponse>;
}
//# sourceMappingURL=wsCodesign.d.ts.map