import { Name } from '@wharfkit/antelope';
import { DIDurl } from './types';
import { ParsedDID } from 'did-resolver';
export declare function getAccountNameFromDid(did: DIDurl): Name;
export declare function parseAntelopeDid(did: DIDurl): ParsedDID & {
    chain: string;
    account: string;
};
export declare function parseDid(did: DIDurl): ParsedDID;
/**
 * Checks if a DID is a valid Antelope DID, sent from the correct source account and chain.
 * - DID must use the "antelope" method
 * - DID must be from the ops.tmy account with #active fragment
 * - DID must be from the correct chain
 *
 * @param {string} did - The DID to check
 * @param {object} options
 * @param {boolean} [options.verifyChainId=true] - Whether to verify the chain ID
 * @returns {Promise<void>} - Throws if invalid
 */
export declare function verifyOpsTmyDid(did: string, { verifyChainId }?: {
    verifyChainId?: boolean;
}): Promise<void>;
export declare function checkChainId(did: string, verifyChainId?: boolean): Promise<string | undefined>;
//# sourceMappingURL=did.d.ts.map