/** * Copyright (c) Whales Corp. * All Rights Reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import { Address } from "../address/Address"; import { Cell } from "../boc/Cell"; import { Contract } from "./Contract"; import { ContractProvider } from "./ContractProvider"; export type OpenedContract = { [P in keyof F]: P extends `${'get' | 'send'}${string}` ? (F[P] extends (x: ContractProvider, ...args: infer P) => infer R ? (...args: P) => R : never) : F[P]; }; export declare function openContract(src: T, factory: (params: { address: Address; init: { code: Cell; data: Cell; } | null; }) => ContractProvider): OpenedContract;